mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-19 17:21:59 +03:00
399a2adb15
Also adding a CI target testing the gambit backend.
91 lines
2.4 KiB
YAML
91 lines
2.4 KiB
YAML
name: macOS Combined Chez
|
|
on:
|
|
push:
|
|
branches:
|
|
- '*'
|
|
tags:
|
|
- '*'
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
env:
|
|
SCHEME: chez
|
|
IDRIS2_TESTS_CG: chez
|
|
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
|
|
|
|
jobs:
|
|
|
|
# Building the executable
|
|
|
|
build-bootstrap-chez:
|
|
runs-on: macos-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
- name: Install build dependencies
|
|
run: |
|
|
brew install chezscheme
|
|
brew install coreutils
|
|
echo "::add-path::$HOME/.idris2/bin"
|
|
- name: Build Idris 2 from bootstrap
|
|
run: make bootstrap && make install
|
|
shell: bash
|
|
- name: Artifact Bootstrapped Idris2
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: installed-bootstrapped-idris2-chez
|
|
path: ~/.idris2/
|
|
|
|
# self hosting and testing
|
|
|
|
self-host-chez:
|
|
needs: build-bootstrap-chez
|
|
runs-on: macos-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
- name: Download Idris2 Artifact
|
|
uses: actions/download-artifact@v2
|
|
with:
|
|
name: installed-bootstrapped-idris2-chez
|
|
path: ~/.idris2/
|
|
- name: Install build dependencies
|
|
run: |
|
|
brew install chezscheme
|
|
brew install coreutils
|
|
echo "::add-path::$HOME/.idris2/bin"
|
|
chmod +x $HOME/.idris2/bin/idris2 $HOME/.idris2/bin/idris2_app/*
|
|
- name: Build self-hosted
|
|
run: make all && make install
|
|
shell: bash
|
|
- name: Test self-hosted
|
|
run: make test INTERACTIVE=''
|
|
shell: bash
|
|
|
|
# this gambit test is really slow so se run it separately
|
|
|
|
test-gambit:
|
|
needs: build-bootstrap-chez
|
|
runs-on: macos-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
- name: Download Idris2 Artifact
|
|
uses: actions/download-artifact@v2
|
|
with:
|
|
name: installed-bootstrapped-idris2-chez
|
|
path: ~/.idris2/
|
|
- name: Install build dependencies
|
|
run: |
|
|
brew install chezscheme
|
|
brew install coreutils
|
|
brew install gambit-scheme
|
|
CURRENTDIR=$(find /usr/local/Cellar/gambit-scheme -type l -name current)
|
|
echo "::add-path::${CURRENTDIR}/bin"
|
|
echo "::add-path::$HOME/.idris2/bin"
|
|
chmod +x $HOME/.idris2/bin/idris2 $HOME/.idris2/bin/idris2_app/*
|
|
- name: Test gambit
|
|
run: cd tests/gambit/bitops001/ && ./run idris2
|
|
shell: bash
|