From eccb7ffc9b5d0d575aef6195c2451dc19265cf5d Mon Sep 17 00:00:00 2001 From: Tyler Cook <10459406+cilki@users.noreply.github.com> Date: Sun, 2 Jun 2024 11:31:54 -0500 Subject: [PATCH] ci: install dependencies --- .github/workflows/check.yml | 13 ++++--------- .github/workflows/test.yml | 12 +++--------- 2 files changed, 7 insertions(+), 18 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 32c4648..26cdcc6 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -58,14 +58,11 @@ jobs: reporter: 'github-pr-check' github_token: ${{ secrets.GITHUB_TOKEN }} doc: - # run docs generation on nightly rather than stable. This enables features like - # https://doc.rust-lang.org/beta/unstable-book/language-features/doc-cfg.html which allows an - # API be documented as only available in some specific platforms. - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 if: "!contains(github.event.head_commit.message, 'chore: release')" name: nightly / doc steps: - - run: sudo apt-get install -y libpango1.0-dev libgraphene-1.0-dev + - run: sudo apt-get install -y libpango1.0-dev libgraphene-1.0-dev libudev-dev libgtk-4-dev libglib2.0-dev - uses: actions/checkout@v4 - name: Install nightly uses: dtolnay/rust-toolchain@nightly @@ -74,16 +71,14 @@ jobs: env: RUSTDOCFLAGS: --cfg docsrs msrv: - # check that we can build using the minimal rust version that is specified by this crate - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 if: "!contains(github.event.head_commit.message, 'chore: release')" - # we use a matrix here just because env can't be used in job names - # https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability strategy: matrix: msrv: ["1.74.0"] name: ubuntu / ${{ matrix.msrv }} steps: + - run: sudo apt-get install -y libpango1.0-dev libgraphene-1.0-dev libudev-dev libgtk-4-dev libglib2.0-dev - uses: actions/checkout@v4 - name: Install ${{ matrix.msrv }} uses: dtolnay/rust-toolchain@master diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 374b8a1..9aeb57b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,7 +18,7 @@ concurrency: cancel-in-progress: true jobs: required: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 if: "!contains(github.event.head_commit.message, 'chore: release')" name: ubuntu / ${{ matrix.toolchain }} strategy: @@ -39,7 +39,7 @@ jobs: run: cargo generate-lockfile # https://twitter.com/jonhoo/status/1571290371124260865 - name: cargo test --locked - run: cargo test --locked --all-features --all-targets + run: cargo test --locked --all-features # https://github.com/rust-lang/cargo/issues/6669 - name: cargo test --doc run: cargo test --locked --all-features --doc @@ -53,12 +53,6 @@ jobs: matrix: os: [macos-latest, windows-latest] steps: - # if your project needs OpenSSL, uncomment this to fix Windows builds. - # it's commented out by default as the install command takes 5-10m. - # - run: echo "VCPKG_ROOT=$env:VCPKG_INSTALLATION_ROOT" | Out-File -FilePath $env:GITHUB_ENV -Append - # if: runner.os == 'Windows' - # - run: vcpkg install openssl:x64-windows-static-md - # if: runner.os == 'Windows' - uses: actions/checkout@v4 - name: Install stable uses: dtolnay/rust-toolchain@stable @@ -66,4 +60,4 @@ jobs: if: hashFiles('Cargo.lock') == '' run: cargo generate-lockfile - name: cargo test - run: cargo test --locked --all-features --all-targets + run: cargo test --locked --all-features --all-targets --exclude goldboot-linux