-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into structural-where-statements
- Loading branch information
Showing
2,445 changed files
with
30,781 additions
and
22,494 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,23 @@ | ||
name: Building on all platforms | ||
|
||
on: | ||
workflow_dispatch: # can be triggered manually | ||
push: | ||
branches: | ||
- master # run for the master branch | ||
- main # run for the main branch | ||
paths: | ||
- conjure-cp.cabal | ||
- Makefile | ||
- src/** | ||
- etc/build/** | ||
- .github/workflows/build.yml | ||
pull_request: # and for PRs | ||
paths: | ||
- conjure-cp.cabal | ||
- Makefile | ||
- src/** | ||
- etc/build/** | ||
- .github/workflows/build.yml | ||
# other branches that want testing must create a PR | ||
|
||
jobs: | ||
|
@@ -23,7 +26,7 @@ jobs: | |
|
||
strategy: | ||
matrix: | ||
GHC_VERSION: [8.6] | ||
GHC_VERSION: ["9.0", "9.2", "9.4"] | ||
os: [ubuntu-latest, macos-latest] | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
@@ -43,9 +46,14 @@ jobs: | |
path: | | ||
~/.stack | ||
.stack-work | ||
key: stack-${{ runner.os }}-ghc${{ matrix.GHC_VERSION }} | ||
key: stack-${{ runner.os }}-ghc${{ matrix.GHC_VERSION }}-${{ github.event.repository.updated_at }} | ||
restore-keys: stack-${{ runner.os }}-ghc${{ matrix.GHC_VERSION }} | ||
|
||
- name: ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
key: ${{ runner.os }} | ||
|
||
- name: Setting PATH | ||
shell: bash | ||
run: echo "${HOME}/.local/bin" >> ${GITHUB_PATH} | ||
|
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,117 @@ | ||
name: Make a release | ||
|
||
on: | ||
workflow_dispatch: # can be triggered manually | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
|
||
Job: | ||
|
||
strategy: | ||
matrix: | ||
GHC_VERSION: ["9.4"] | ||
os: [ubuntu-latest, macos-latest] | ||
include: | ||
- os: ubuntu-latest | ||
release_suffix: linux | ||
- os: macos-latest | ||
release_suffix: macos-intel | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
|
||
- uses: actions/checkout@v3 | ||
name: Checkout repository | ||
|
||
- name: Stack version | ||
shell: bash | ||
run: GHC_VERSION=${{ matrix.GHC_VERSION }} make stack.yaml | ||
|
||
- uses: actions/cache@v3 | ||
name: Cache stack | ||
with: | ||
path: | | ||
~/.stack | ||
.stack-work | ||
key: stack-${{ runner.os }}-ghc${{ matrix.GHC_VERSION }}-${{ github.event.repository.updated_at }} | ||
restore-keys: stack-${{ runner.os }}-ghc${{ matrix.GHC_VERSION }} | ||
|
||
- name: ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
key: ${{ runner.os }} | ||
|
||
- name: Setting PATH | ||
shell: bash | ||
run: echo "${HOME}/.local/bin" >> ${GITHUB_PATH} | ||
|
||
- name: Build Conjure | ||
shell: bash | ||
run: BIN_DIR=${HOME}/.local/bin GHC_VERSION=${{ matrix.GHC_VERSION }} BUILD_TESTS=true make | ||
|
||
- name: Setting PATH (for solvers) | ||
shell: bash | ||
run: | | ||
echo "${HOME}/.local/bin" >> ${GITHUB_PATH} | ||
echo "/usr/lib/ccache" >> ${GITHUB_PATH} | ||
echo "/usr/local/opt/ccache/libexec" >> ${GITHUB_PATH} | ||
- name: Installing dependencies (gperf) on Linux | ||
shell: bash | ||
run: sudo apt-get install -y gperf | ||
if: runner.os == 'Linux' | ||
|
||
- name: Installing dependencies (gperf) on macOS | ||
shell: bash | ||
run: brew install gperf | ||
if: runner.os == 'macOS' | ||
|
||
- name: Build solvers | ||
shell: bash | ||
run: BIN_DIR=${HOME}/.local/bin PROCESSES=2 make solvers | ||
|
||
# when gecode comes back, this is the list | ||
# conjure bc_minisat_all_release boolector cadical fzn-chuffed fzn-gecode glucose glucose-syrup kissat lingeling minion nbc_minisat_all_release open-wbo plingeling treengeling yices yices-sat yices-smt yices-smt2 z3 | ||
- name: Strip binaries | ||
shell: bash | ||
run: | | ||
pushd ~/.local/bin | ||
strip conjure bc_minisat_all_release boolector cadical fzn-chuffed glucose glucose-syrup kissat lingeling minion nbc_minisat_all_release open-wbo plingeling treengeling yices yices-sat yices-smt yices-smt2 z3 | ||
mkdir -p conjure-${{ github.ref_name }}-${{ matrix.release_suffix }} | ||
cp conjure conjure-${{ github.ref_name }}-${{ matrix.release_suffix }} | ||
mkdir -p conjure-${{ github.ref_name }}-${{ matrix.release_suffix }}-with-solvers | ||
cp conjure bc_minisat_all_release boolector cadical fzn-chuffed glucose glucose-syrup kissat lingeling minion nbc_minisat_all_release open-wbo plingeling treengeling yices yices-sat yices-smt yices-smt2 z3 conjure-${{ github.ref_name }}-${{ matrix.release_suffix }}-with-solvers | ||
cp -r savilerow savilerow.jar lib conjure-${{ github.ref_name }}-${{ matrix.release_suffix }}-with-solvers | ||
zip -r -9 conjure-${{ github.ref_name }}-${{ matrix.release_suffix }}.zip conjure-${{ github.ref_name }}-${{ matrix.release_suffix }} | ||
zip -r -9 conjure-${{ github.ref_name }}-${{ matrix.release_suffix }}-with-solvers.zip conjure-${{ github.ref_name }}-${{ matrix.release_suffix }}-with-solvers | ||
popd | ||
cp ~/.local/bin/conjure-${{ github.ref_name }}-${{ matrix.release_suffix }}.zip . | ||
cp ~/.local/bin/conjure-${{ github.ref_name }}-${{ matrix.release_suffix }}-with-solvers.zip . | ||
# See https://github.com/softprops/action-gh-release | ||
- name: Create Release | ||
id: create_release | ||
uses: softprops/action-gh-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
name: ${{ github.ref_name }} | ||
draft: false | ||
prerelease: false | ||
generate_release_notes: true | ||
files: | | ||
conjure-${{ github.ref_name }}-${{ matrix.release_suffix }}.zip | ||
conjure-${{ github.ref_name }}-${{ matrix.release_suffix }}-with-solvers.zip |
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 |
---|---|---|
@@ -1,26 +1,28 @@ | ||
name: Running all tests (code coverage) | ||
|
||
on: | ||
workflow_dispatch: # can be triggered manually | ||
push: | ||
branches: | ||
- master # run for the master branch only | ||
- main # run for the main branch only | ||
paths: | ||
- conjure-cp.cabal | ||
- Makefile | ||
- src/** | ||
- tests/** | ||
- etc/build/** | ||
- .github/workflows/test-coverage.yml | ||
|
||
jobs: | ||
|
||
Job: | ||
|
||
strategy: | ||
matrix: | ||
GHC_VERSION: [8.6] | ||
GHC_VERSION: [9.4] | ||
os: [ubuntu-latest] | ||
|
||
runs-on: ubuntu-latest | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
@@ -36,9 +38,14 @@ jobs: | |
path: | | ||
~/.stack | ||
.stack-work | ||
key: stack-${{ runner.os }}-ghc${{ matrix.GHC_VERSION }} | ||
key: stack-${{ runner.os }}-ghc${{ matrix.GHC_VERSION }}-${{ github.event.repository.updated_at }} | ||
restore-keys: stack-${{ runner.os }}-ghc${{ matrix.GHC_VERSION }} | ||
|
||
- name: ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
key: ${{ runner.os }} | ||
|
||
- name: Setting PATH | ||
shell: bash | ||
run: echo "${HOME}/.local/bin" >> ${GITHUB_PATH} | ||
|
@@ -51,6 +58,10 @@ jobs: | |
shell: bash | ||
run: BIN_DIR=${HOME}/.local/bin etc/build/install-minion.sh | ||
|
||
- name: Install Chuffed | ||
shell: bash | ||
run: BIN_DIR=${HOME}/.local/bin etc/build/install-chuffed.sh | ||
|
||
- name: Install Cadical | ||
shell: bash | ||
run: BIN_DIR=${HOME}/.local/bin etc/build/install-cadical.sh | ||
|
Oops, something went wrong.