Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
msoos committed Apr 11, 2024
1 parent 402ada1 commit f19596a
Showing 1 changed file with 11 additions and 32 deletions.
43 changes: 11 additions & 32 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,20 @@ on:
pull_request:
branches: [ "master" ]

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release

jobs:
build:
# The CMake configure and build commands are platform agnostic and should work equally
# well on Windows or Mac. You can convert this to a matrix build if you need
# cross-platform coverage.
# See: https://docs.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow#configuring-a-build-matrix
runs-on: ubuntu-latest

runs-on: ${{ matrix.os }}
strategy:
matrix:
#os: [ubuntu-20.04, windows-2022, macos-13]
os: [ubuntu-20.04, macos-13]
build_type: ['Release']
staticcompile: ['ON', 'OFF']

steps:
- uses: actions/checkout@v2

Expand Down Expand Up @@ -69,7 +71,7 @@ jobs:
run: |
cd cryptominisat
mkdir build && cd build
cmake ..
cmake -DENABLE_TESTING=OFF -DSTATICCOMPILE=${{ matrix.staticcompile }} ..
make
cd ../..
Expand All @@ -78,32 +80,15 @@ jobs:
with:
repository: meelgroup/arjun
path: arjun

- name: Build Arjun
run: |
cd arjun
mkdir build && cd build
cmake ..
make
cd ../..

- name: Build Arjun
run: |
cd arjun
mkdir build && cd build
cmake ..
cmake -DENABLE_TESTING=OFF -DSTATICCOMPILE=${{ matrix.staticcompile }} ..
make
cd ../..
- name: Build Arjun
run: |
mkdir arjun_git && cd arjun_git
git clone --depth 1 https://github.com/meelgroup/arjun
cd arjun
mkdir build && cd build
cmake ..
make
cd ../../..
- name: Configure CMake
# Use a bash shell so we can use the same syntax for environment variable
Expand All @@ -113,17 +98,11 @@ jobs:
# Note the current convention is to use the -S and -B options here to specify source
# and build directories, but this is only available with CMake 3.13 and higher.
# The CMake binaries on the Github Actions machines are (as of this writing) 3.12
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE
run: cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DENABLE_TESTING=OFF -DSTATICCOMPILE=${{ matrix.staticcompile }} $GITHUB_WORKSPACE

- name: Build
working-directory: ${{runner.workspace}}/build
shell: bash
# Execute the build. You can specify a specific target with "--target <NAME>"
run: cmake --build . --config $BUILD_TYPE

- name: Test
working-directory: ${{runner.workspace}}/build
shell: bash
# Execute tests defined by the CMake configuration.
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ctest -C $BUILD_TYPE

0 comments on commit f19596a

Please sign in to comment.