Skip to content

Commit

Permalink
CI: build and test for Conjure Oxide
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasdewally committed Nov 3, 2023
1 parent 984f12d commit a4bca91
Show file tree
Hide file tree
Showing 2 changed files with 112 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/minion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ jobs:
run: rustup update stable && rustup default stable

- working-directory: ./solvers/minion
run: cargo test -- --test-threads=1
run: cargo test



Expand Down
111 changes: 111 additions & 0 deletions .github/workflows/oxide.yml
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





0 comments on commit a4bca91

Please sign in to comment.