diff --git a/.github/workflows/minion.yml b/.github/workflows/minion.yml index b84894d95..0fa56f635 100644 --- a/.github/workflows/minion.yml +++ b/.github/workflows/minion.yml @@ -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 diff --git a/.github/workflows/oxide.yml b/.github/workflows/oxide.yml new file mode 100644 index 000000000..b8e4aa9fa --- /dev/null +++ b/.github/workflows/oxide.yml @@ -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 + + + + +