Skip to content

fix workflow

fix workflow #4

Workflow file for this run

# .github/workflows/build.yaml
name: C
on:
push:
branches: [ main ]
paths:
- '.github/workflows/c.yaml'
- 'src/**'
pull_request:
branches: [ main ]
paths:
- '.github/workflows/c.yaml'
- 'src/**'
concurrency:
group: ${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true
jobs:
build:
name: build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macOS-latest]
steps:
- uses: actions/checkout@v3
- name: Install GSL
if: runner.os == 'macOS'
run: brew install gsl
- name: Install GSL
if: runner.os == 'Windows'
env:
GSL_PATH: /tmp/gsl
run: |
mkdir $GSL_PATH
curl https://github.com/rwinlib/gsl/archive/v2.7.zip --output ${GSL_PATH}/gsl.zip
cd $GSL_PATH && 7z x gsl.zip
shell: bash
- run: make -C src all DEBUG=1 WARN_FLAGS='-Werror'
- run: make -C src all DEBUG=0 WARN_FLAGS='-Werror'
- name: Functional tests
run: |
./bin/dominatedsets --help
./bin/dominatedsets --help
./bin/eaf --help
./bin/epsilon --help
./bin/hv --help
./bin/igd --help
./bin/ndsort --help
./bin/nondominated --help