-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: build and test for Conjure Oxide
- Loading branch information
1 parent
984f12d
commit a4bca91
Showing
2 changed files
with
112 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
name: "conjure-oxide" | ||
on: | ||
push: | ||
paths: | ||
- 'src/**' | ||
- "Cargo.*" | ||
pull_request: | ||
paths: | ||
- 'src/**' | ||
- "Cargo.*" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
ubuntu: | ||
name: "Conjure Oxide: Ubuntu Build" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Generate caching variables | ||
id: cache-vars | ||
run: | | ||
echo -e "submodule_sha=$(./etc/ci/get_submodules_hash.sh)" >> "$GITHUB_OUTPUT" | ||
echo -e "submodule_sha=$(./etc/ci/get_submodules_hash.sh)" | ||
- 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 | ||
solvers/chuffed/vendor | ||
|
||
key: stable-${{ runner.os }}-gitmodules-${{ steps.cache-vars.outputs.submodule_sha }}-cargo-${{ hashFiles('**/Cargo.lock') }} | ||
restore-keys: stable-${{ runner.os }}-gitmodules- | ||
|
||
- run: rustup update stable && rustup default stable | ||
|
||
- run: cargo build -vv | ||
|
||
mac: | ||
name: "Conjure Oxide: Mac Build" | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Generate caching variables | ||
id: cache-vars | ||
run: | | ||
echo -e "submodule_sha=$(./etc/ci/get_submodules_hash.sh)" >> "$GITHUB_OUTPUT" | ||
echo -e "submodule_sha=$(./etc/ci/get_submodules_hash.sh)" | ||
- 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 | ||
solvers/chuffed/vendor | ||
|
||
key: stable-${{ runner.os }}-gitmodules-${{ steps.cache-vars.outputs.submodule_sha }}-cargo-${{ hashFiles('**/Cargo.lock') }} | ||
restore-keys: stable-${{ runner.os }}-gitmodules- | ||
|
||
- run: rustup update stable && rustup default stable | ||
|
||
- run: rustup target add aarch64-apple-darwin | ||
|
||
- run: cargo build -vv | ||
|
||
tests: | ||
name: "Conjure Oxide: Tests" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Generate caching variables | ||
id: cache-vars | ||
run: | | ||
echo -e "submodule_sha=$(./etc/ci/get_submodules_hash.sh)" >> "$GITHUB_OUTPUT" | ||
echo -e "submodule_sha=$(./etc/ci/get_submodules_hash.sh)" | ||
- 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 | ||
solvers/chuffed/vendor | ||
key: stable-${{ runner.os }}-gitmodules-${{ steps.cache-vars.outputs.submodule_sha }}-cargo-${{ hashFiles('**/Cargo.lock') }} | ||
restore-keys: stable-${{ runner.os }}-gitmodules- | ||
|
||
- run: rustup update stable && rustup default stable | ||
|
||
- run: cargo test | ||
|
||
|
||
|
||
|
||
|