Skip to content

Merge remote-tracking branch 'origin/main' #3

Merge remote-tracking branch 'origin/main'

Merge remote-tracking branch 'origin/main' #3

Workflow file for this run

# https://doc.rust-lang.org/cargo/guide/continuous-integration.html
# https://ectobit.com/blog/speed-up-github-actions-rust-pipelines/
name: 'solvers/kissat'
on:
push:
branches:
- main # run for pushes to the main branch
pull_request:
paths:
- 'solvers/kissat/**'
- "Cargo.*"
workflow_dispatch:
jobs:
ubuntu:
name: 'Kissat: 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/
key: stable-${{ runner.os }}-gitmodules-${{ steps.cache-vars.outputs.submodule_sha }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: stable-${{ runner.os }}-gitmodules-
- working-directory: ./solvers/kissat
run: rustup update stable && rustup default stable
- working-directory: ./solvers/kissat
run: cargo build -vv
mac:
name: "Kissat: 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/
key: stable-${{ runner.os }}-gitmodules-${{ steps.cache-vars.outputs.submodule_sha }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: stable-${{ runner.os }}-gitmodules-
- working-directory: ./solvers/kissat
run: rustup update stable && rustup default stable
- working-directory: ./solvers/kissat
run: rustup target add aarch64-apple-darwin
- working-directory: ./solvers/kissat
run: cargo build -vv
tests:
name: "Kissat: 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/
key: stable-${{ runner.os }}-gitmodules-${{ steps.cache-vars.outputs.submodule_sha }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: stable-${{ runner.os }}-gitmodules-
- working-directory: ./solvers/kissat
run: rustup update stable && rustup default stable
- working-directory: ./solvers/kissat
run: cargo test