Utilize variables for the build in more places #32
Workflow file for this run
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
name: Build & Test | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
- devel | |
jobs: | |
build-test: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install dependencies (Ubuntu) | |
if: matrix.os == 'ubuntu-latest' | |
run: | | |
sudo apt-get update -qq | |
sudo apt-get install -y binutils build-essential perl libgmp-dev | |
- name: Install dependencies (macOS) | |
if: matrix.os == 'macos-latest' | |
run: | | |
brew update | |
brew install gmp | |
- name: Build | |
run: | | |
cd src && make world | |
- name: Install | |
run: | | |
cd src | |
sudo make install | |
- name: Test compiler and runtime system | |
run: | | |
cd src/test | |
make current cleaned | |
diff cleaned-result cleaned-result.ok | |
- name: Test mosmllib | |
run: | | |
cd src/mosmllib/test | |
make current cleaned | |
diff cleaned-result cleaned-result.ok |