Skip to content

Commit

Permalink
Download tri-pp in CI and add macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
zafer-esen committed Sep 19, 2024
1 parent 97d4005 commit 3b488d9
Showing 1 changed file with 29 additions and 3 deletions.
32 changes: 29 additions & 3 deletions .github/workflows/scala.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,49 @@ name: Scala CI

on:
push:
branches: [ master ]
branches:
- master
- mac-ci
pull_request:
branches: [ master ]
branches:
- master
- mac-ci

jobs:
build:

runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-20.04, macos-13]
fail-fast: true # keep running other os on fail?

steps:
- uses: actions/checkout@v2

- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'

- name: Download tri-pp binary
run: |
if [[ "$RUNNER_OS" == "Linux" ]]; then
wget https://github.com/zafer-esen/tri-pp/releases/download/v0.1.4/tri-pp-ubuntu-20.04 -O tri-pp
elif [[ "$RUNNER_OS" == "macOS" ]]; then
wget https://github.com/zafer-esen/tri-pp/releases/download/v0.1.4/tri-pp-macos-13 -O tri-pp
xattr -d com.apple.quarantine tri-pp || true
fi
chmod +x tri-pp
- name: Install sbt on macOS
if: runner.os == 'macOS'
run: brew install sbt

- name: Build
run: sbt assembly

- name: Test
run: cd regression-tests; export TERM=xterm; ./runalldirs

0 comments on commit 3b488d9

Please sign in to comment.