Skip to content

Commit

Permalink
minion: update ci to use caching
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasdewally committed Sep 28, 2023
1 parent 3f28dbb commit 8659767
Showing 1 changed file with 41 additions and 2 deletions.
43 changes: 41 additions & 2 deletions .github/workflows/minion-tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# https://doc.rust-lang.org/cargo/guide/continuous-integration.html
# https://ectobit.com/blog/speed-up-github-actions-rust-pipelines/
name: 'solvers/minion'
on:
push:
Expand All @@ -16,32 +17,70 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Set up cache
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
solvers/minion/vendor
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-

- working-directory: ./solvers/minion
run: rustup update stable && rustup default stable

- working-directory: ./solvers/minion
run: cargo build --verbose
run: cargo build -vv

mac:
name: 'solvers/minion: Mac Build'
runs-on: macos-latest
steps:
- uses: actions/checkout@v2

- name: Set up cache
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
solvers/minion/vendor
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-

- working-directory: ./solvers/minion
run: rustup update stable && rustup default stable

- working-directory: ./solvers/minion
run: rustup target add aarch64-apple-darwin

- working-directory: ./solvers/minion
run: cargo build --verbose
run: cargo build -vv

tests:
name: 'solvers/minion: Tests'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up cache
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
solvers/minion/vendor
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-

- working-directory: ./solvers/minion
run: rustup update stable && rustup default stable
Expand Down

0 comments on commit 8659767

Please sign in to comment.