Skip to content

run tests on macOS

run tests on macOS #9

Workflow file for this run

# This file is part of the Fuzion language implementation.
#
# The Fuzion language implementation is free software: you can redistribute it
# and/or modify it under the terms of the GNU General Public License as published
# by the Free Software Foundation, version 3 of the License.
#
# The Fuzion language implementation is distributed in the hope that it will be
# useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
# License for more details.
#
# You should have received a copy of the GNU General Public License along with The
# Fuzion language implementation. If not, see <https://www.gnu.org/licenses/>.
# -----------------------------------------------------------------------
#
# Tokiwa Software GmbH, Germany
#
# GitHub Actions workflow to build and test Fuzion on MacOS.
#
# -----------------------------------------------------------------------
name: run tests on macOS
permissions:
contents: read
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 0' # every sunday
env:
PRECONDITIONS: true
POSTCONDITIONS: true
FUZION_REPRODUCIBLE_BUILD: true
jobs:
run_tests:
runs-on: macos-12
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3.12.0
with:
distribution: 'temurin'
java-version: '17'
- name: install dependencies
run: |
brew install bdw-gc gnu-sed make
echo "/usr/local/opt/gnu-sed/libexec/gnubin:/usr/local/opt/gnu-make/libexec/gnubin:$PATH" >> $GITHUB_PATH
- name: sed version
run: sed --version
- name: make version
run: make --version
- name: build java code
run: make javac
- name: build (no java modules)
run: make no-java
- name: run tests
run: make run_tests