Skip to content

Commit

Permalink
ci: install dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
cilki committed Jun 2, 2024
1 parent 21ad421 commit eccb7ff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 18 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
12 changes: 3 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -53,17 +53,11 @@ 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
- name: cargo generate-lockfile
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

0 comments on commit eccb7ff

Please sign in to comment.