2021-06-29 21:42:48 +03:00
|
|
|
name: Idris2
|
2021-01-20 23:15:24 +03:00
|
|
|
|
|
|
|
on:
|
2021-06-29 21:42:48 +03:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- '*'
|
|
|
|
tags:
|
|
|
|
- '*'
|
2021-07-21 18:49:32 +03:00
|
|
|
paths-ignore:
|
|
|
|
- 'docs/**'
|
|
|
|
- 'icons/**'
|
2021-08-31 15:54:40 +03:00
|
|
|
- 'Release/**'
|
2022-02-02 00:34:29 +03:00
|
|
|
- '**.md'
|
2021-07-21 18:49:32 +03:00
|
|
|
- 'CONTRIBUTORS'
|
|
|
|
- 'LICENSE'
|
2022-12-15 20:55:50 +03:00
|
|
|
- 'CHANGELOG.md'
|
2021-09-20 13:26:32 +03:00
|
|
|
- '.github/workflows/ci-bootstrap.yml'
|
2021-07-21 18:49:32 +03:00
|
|
|
- '.github/workflows/ci-lint.yml'
|
|
|
|
- '.github/workflows/ci-sphinx.yml'
|
|
|
|
- '.github/workflows/ci-super-linter.yml'
|
2021-06-29 21:42:48 +03:00
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- main
|
2021-07-21 18:49:32 +03:00
|
|
|
paths-ignore:
|
|
|
|
- 'docs/**'
|
|
|
|
- 'icons/**'
|
2021-09-20 13:26:32 +03:00
|
|
|
- 'Release/**'
|
2022-02-02 00:34:29 +03:00
|
|
|
- '**.md'
|
2021-07-21 18:49:32 +03:00
|
|
|
- 'CONTRIBUTORS'
|
|
|
|
- 'LICENSE'
|
2021-09-20 13:26:32 +03:00
|
|
|
- '.github/workflows/ci-bootstrap.yml'
|
2021-07-21 18:49:32 +03:00
|
|
|
- '.github/workflows/ci-lint.yml'
|
|
|
|
- '.github/workflows/ci-sphinx.yml'
|
|
|
|
- '.github/workflows/ci-super-linter.yml'
|
2021-01-20 23:15:24 +03:00
|
|
|
|
2022-12-09 14:39:54 +03:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2021-01-20 23:15:24 +03:00
|
|
|
env:
|
2023-01-18 18:54:42 +03:00
|
|
|
# We aim to keep newest Idris commits buildable by as early of a
|
|
|
|
# previous version as possible. In reality, we bump this regularly
|
|
|
|
# to allow us to use new compiler/library features in the compiler
|
|
|
|
# codebase, but an admirable longterm goal is to support building the
|
|
|
|
# current version of the compiler with a previous version that is older
|
|
|
|
# than its immediate predecessor.
|
|
|
|
IDRIS2_MINIMUM_COMPAT_VERSION: 0.6.0
|
2021-01-20 23:15:24 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
2021-07-21 18:49:32 +03:00
|
|
|
initialise:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout Project
|
2023-01-18 18:54:42 +03:00
|
|
|
uses: actions/checkout@v3
|
2021-07-21 18:49:32 +03:00
|
|
|
with:
|
|
|
|
# for pull_request so we can do HEAD^2
|
|
|
|
fetch-depth: 2
|
|
|
|
|
|
|
|
- name: Get commit message
|
|
|
|
id: get_commit_message
|
|
|
|
run: |
|
|
|
|
if [[ '${{ github.event_name }}' == 'push' ]]; then
|
2022-12-09 14:14:35 +03:00
|
|
|
echo "commit_message=$(git log --format=%B -n 1 HEAD | tr '\n' ' ')" >> "$GITHUB_OUTPUT"
|
2021-07-21 18:49:32 +03:00
|
|
|
elif [[ '${{ github.event_name }}' == 'pull_request' ]]; then
|
2022-12-09 14:14:35 +03:00
|
|
|
echo "commit_message=$(git log --format=%B -n 1 HEAD^2 | tr '\n' ' ')" >> "$GITHUB_OUTPUT"
|
2021-07-21 18:49:32 +03:00
|
|
|
fi
|
|
|
|
|
|
|
|
outputs:
|
|
|
|
commit_message:
|
|
|
|
echo "${{ steps.get_commit_message.outputs.commit_message }}"
|
|
|
|
|
2021-06-29 21:42:48 +03:00
|
|
|
######################################################################
|
|
|
|
# Build from the previous version
|
|
|
|
# We perform this check before all the other ones because:
|
|
|
|
# 1. It is fast
|
|
|
|
# 2. If it fails then there is no point in trying the rest
|
|
|
|
######################################################################
|
2021-01-20 23:15:24 +03:00
|
|
|
|
2021-06-29 21:42:48 +03:00
|
|
|
quick-check:
|
2021-07-21 18:49:32 +03:00
|
|
|
needs: initialise
|
2021-01-20 23:15:24 +03:00
|
|
|
runs-on: ubuntu-latest
|
2021-07-21 18:49:32 +03:00
|
|
|
if: |
|
|
|
|
!contains(needs.initialise.outputs.commit_message, '[ci: skip]')
|
2021-01-20 23:15:24 +03:00
|
|
|
env:
|
|
|
|
IDRIS2_CG: chez
|
2021-06-29 21:42:48 +03:00
|
|
|
SCHEME: scheme
|
2021-01-20 23:15:24 +03:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-01-18 18:54:42 +03:00
|
|
|
uses: actions/checkout@v3
|
2021-01-20 23:15:24 +03:00
|
|
|
- name: Install build dependencies
|
|
|
|
run: |
|
2021-06-15 16:31:31 +03:00
|
|
|
sudo apt-get update
|
2022-07-28 13:55:01 +03:00
|
|
|
sudo apt-get install -y chezscheme
|
2021-12-25 22:09:12 +03:00
|
|
|
echo "$HOME/.idris2/bin" >> "$GITHUB_PATH"
|
2021-06-29 21:42:48 +03:00
|
|
|
|
|
|
|
# Get our hands on the released version either by using the cache
|
|
|
|
# or by rebuilding it if necessary.
|
|
|
|
- name: Cache Chez Previous Version
|
|
|
|
id: previous-version-cache
|
2023-01-18 18:54:42 +03:00
|
|
|
uses: actions/cache@v3
|
2021-06-29 21:42:48 +03:00
|
|
|
with:
|
2023-01-18 18:54:42 +03:00
|
|
|
path: Idris2-${{ env.IDRIS2_MINIMUM_COMPAT_VERSION }}
|
|
|
|
key: ${{ runner.os }}-idris2-bootstrapped-chez-${{ env.IDRIS2_MINIMUM_COMPAT_VERSION }}
|
2021-06-29 21:42:48 +03:00
|
|
|
- name : Build previous version
|
|
|
|
if: steps.previous-version-cache.outputs.cache-hit != 'true'
|
|
|
|
run: |
|
2023-01-18 18:54:42 +03:00
|
|
|
wget "https://www.idris-lang.org/idris2-src/idris2-$IDRIS2_MINIMUM_COMPAT_VERSION.tgz"
|
|
|
|
tar zxvf "idris2-$IDRIS2_MINIMUM_COMPAT_VERSION.tgz"
|
|
|
|
cd "Idris2-$IDRIS2_MINIMUM_COMPAT_VERSION"
|
2021-06-29 21:42:48 +03:00
|
|
|
make bootstrap
|
|
|
|
cd ..
|
|
|
|
- name: Install previous version
|
|
|
|
run: |
|
2023-01-18 18:54:42 +03:00
|
|
|
cd "Idris2-$IDRIS2_MINIMUM_COMPAT_VERSION"
|
2021-06-29 21:42:48 +03:00
|
|
|
make install
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
# Build the current version and save the installation.
|
|
|
|
- name: Build current version
|
|
|
|
run: |
|
|
|
|
make && make install
|
|
|
|
- name: Artifact Idris2 from previous version
|
2023-01-18 18:54:42 +03:00
|
|
|
uses: actions/upload-artifact@v3
|
2021-01-20 23:15:24 +03:00
|
|
|
with:
|
2023-01-18 18:54:42 +03:00
|
|
|
name: ubuntu-installed-idris2-${{ env.IDRIS2_MINIMUM_COMPAT_VERSION }}-chez
|
2021-01-20 23:15:24 +03:00
|
|
|
path: ~/.idris2/
|
|
|
|
|
2021-06-29 21:42:48 +03:00
|
|
|
######################################################################
|
|
|
|
# Bootstrapping builds
|
|
|
|
######################################################################
|
|
|
|
|
|
|
|
# CHEZ
|
|
|
|
|
|
|
|
ubuntu-bootstrap-chez:
|
2023-01-18 18:54:42 +03:00
|
|
|
needs: [initialise, quick-check]
|
2021-01-20 23:15:24 +03:00
|
|
|
runs-on: ubuntu-latest
|
2021-07-21 18:49:32 +03:00
|
|
|
if: |
|
|
|
|
!contains(needs.initialise.outputs.commit_message, '[ci:')
|
|
|
|
|| contains(needs.initialise.outputs.commit_message, '[ci: ubuntu]')
|
|
|
|
|| contains(needs.initialise.outputs.commit_message, '[ci: chez]')
|
2021-01-20 23:15:24 +03:00
|
|
|
env:
|
2021-06-29 21:42:48 +03:00
|
|
|
IDRIS2_CG: chez
|
|
|
|
SCHEME: scheme
|
2021-01-20 23:15:24 +03:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-01-18 18:54:42 +03:00
|
|
|
uses: actions/checkout@v3
|
2021-01-20 23:15:24 +03:00
|
|
|
- name: Install build dependencies
|
|
|
|
run: |
|
2021-06-29 21:42:48 +03:00
|
|
|
sudo apt-get update
|
2022-07-28 13:55:01 +03:00
|
|
|
sudo apt-get install -y chezscheme
|
2021-12-25 22:09:12 +03:00
|
|
|
echo "$HOME/.idris2/bin" >> "$GITHUB_PATH"
|
2021-07-04 05:17:13 +03:00
|
|
|
- name: Make bootstrap folder readonly
|
|
|
|
run: chmod -R a-w bootstrap
|
2021-01-20 23:15:24 +03:00
|
|
|
- name: Build from bootstrap
|
2021-06-29 21:42:48 +03:00
|
|
|
run: make bootstrap && make install
|
2021-01-20 23:15:24 +03:00
|
|
|
- name: Artifact Bootstrapped Idris2
|
2023-01-18 18:54:42 +03:00
|
|
|
uses: actions/upload-artifact@v3
|
2021-01-20 23:15:24 +03:00
|
|
|
with:
|
2021-06-29 21:42:48 +03:00
|
|
|
name: ubuntu-installed-bootstrapped-idris2-chez
|
2021-01-20 23:15:24 +03:00
|
|
|
path: ~/.idris2/
|
|
|
|
|
2021-06-29 21:42:48 +03:00
|
|
|
macos-bootstrap-chez:
|
2023-01-18 18:54:42 +03:00
|
|
|
needs: [initialise, quick-check]
|
2021-06-29 21:42:48 +03:00
|
|
|
runs-on: macos-latest
|
2021-07-21 18:49:32 +03:00
|
|
|
if: |
|
|
|
|
!contains(needs.initialise.outputs.commit_message, '[ci:')
|
|
|
|
|| contains(needs.initialise.outputs.commit_message, '[ci: macos]')
|
|
|
|
|| contains(needs.initialise.outputs.commit_message, '[ci: chez]')
|
2021-01-20 23:15:24 +03:00
|
|
|
env:
|
2021-06-29 21:42:48 +03:00
|
|
|
SCHEME: chez
|
2021-01-20 23:15:24 +03:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-01-18 18:54:42 +03:00
|
|
|
uses: actions/checkout@v3
|
2021-01-20 23:15:24 +03:00
|
|
|
- name: Install build dependencies
|
|
|
|
run: |
|
2021-06-29 21:42:48 +03:00
|
|
|
brew install chezscheme
|
|
|
|
brew install coreutils
|
2021-12-25 22:09:12 +03:00
|
|
|
echo "$HOME/.idris2/bin" >> "$GITHUB_PATH"
|
2021-07-04 05:17:13 +03:00
|
|
|
- name: Make bootstrap folder readonly
|
|
|
|
run: chmod -R a-w bootstrap
|
2021-06-29 21:42:48 +03:00
|
|
|
- name: Build Idris 2 from bootstrap
|
|
|
|
run: make bootstrap && make install
|
|
|
|
shell: bash
|
|
|
|
- name: Artifact Bootstrapped Idris2
|
2023-01-18 18:54:42 +03:00
|
|
|
uses: actions/upload-artifact@v3
|
2021-01-20 23:15:24 +03:00
|
|
|
with:
|
2021-06-29 21:42:48 +03:00
|
|
|
name: macos-installed-bootstrapped-idris2-chez
|
|
|
|
path: ~/.idris2/
|
|
|
|
|
|
|
|
windows-bootstrap-chez:
|
2023-01-18 18:54:42 +03:00
|
|
|
needs: [initialise, quick-check]
|
2021-06-29 21:42:48 +03:00
|
|
|
runs-on: windows-latest
|
2021-07-21 18:49:32 +03:00
|
|
|
if: |
|
|
|
|
!contains(needs.initialise.outputs.commit_message, '[ci:')
|
|
|
|
|| contains(needs.initialise.outputs.commit_message, '[ci: windows]')
|
|
|
|
|| contains(needs.initialise.outputs.commit_message, '[ci: chez]')
|
2021-07-22 14:27:34 +03:00
|
|
|
|| contains(needs.initialise.outputs.commit_message, '[ci: racket]')
|
2021-06-29 21:42:48 +03:00
|
|
|
env:
|
|
|
|
MSYSTEM: MINGW64
|
|
|
|
MSYS2_PATH_TYPE: inherit
|
|
|
|
SCHEME: scheme
|
|
|
|
CC: gcc
|
|
|
|
steps:
|
|
|
|
- name: Init
|
2021-01-20 23:15:24 +03:00
|
|
|
run: |
|
2021-06-29 21:42:48 +03:00
|
|
|
git config --global core.autocrlf false
|
|
|
|
- name: Checkout
|
2023-01-18 18:54:42 +03:00
|
|
|
uses: actions/checkout@v3
|
2021-06-29 21:42:48 +03:00
|
|
|
- name: Get Chez Scheme
|
2021-01-20 23:15:24 +03:00
|
|
|
run: |
|
2021-06-29 21:42:48 +03:00
|
|
|
git clone --depth 1 https://github.com/cisco/ChezScheme
|
2022-03-04 01:29:25 +03:00
|
|
|
c:\msys64\usr\bin\bash -l -c "pacman -S --noconfirm tar make mingw-w64-x86_64-gcc"
|
2021-06-29 21:42:48 +03:00
|
|
|
echo "PWD=$(c:\msys64\usr\bin\cygpath -u $(pwd))" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
|
|
|
|
- name: Configure and Build Chez Scheme
|
|
|
|
run: |
|
|
|
|
c:\msys64\usr\bin\bash -l -c "cd $env:PWD && cd ChezScheme && ./configure --threads && make"
|
|
|
|
- name: Set Path
|
|
|
|
run: |
|
|
|
|
$chez="$(pwd)\ChezScheme\ta6nt\bin\ta6nt"
|
|
|
|
$idris="$(pwd)\.idris2"
|
|
|
|
echo "$chez" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
|
|
|
|
echo "$idris\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
|
|
|
|
echo "IDRIS_PREFIX=$idris" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
|
|
|
|
echo "PREFIX=$(c:\msys64\usr\bin\cygpath -u $idris)" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
|
|
|
|
- name: Test Scheme
|
|
|
|
run: |
|
|
|
|
scheme --version
|
2021-07-19 04:14:43 +03:00
|
|
|
- name: Bootstrap
|
|
|
|
run: c:\msys64\usr\bin\bash -l -c "cd $env:PWD && make bootstrap"
|
|
|
|
- name: Bootstrap test
|
2022-10-21 23:01:54 +03:00
|
|
|
run: c:\msys64\usr\bin\bash -l -c "cd $env:PWD && make ci-windows-bootstrap-test"
|
2021-07-19 04:14:43 +03:00
|
|
|
- name: Install
|
|
|
|
run: c:\msys64\usr\bin\bash -l -c "cd $env:PWD && make install"
|
2021-07-21 16:35:21 +03:00
|
|
|
- name: Artifact Idris2 from chez
|
2023-01-18 18:54:42 +03:00
|
|
|
uses: actions/upload-artifact@v3
|
2021-07-21 16:35:21 +03:00
|
|
|
with:
|
|
|
|
name: windows-installed-bootstrapped-idris2-chez
|
|
|
|
path: ${{ env.IDRIS_PREFIX }}
|
2021-06-29 21:42:48 +03:00
|
|
|
|
|
|
|
nix-bootstrap-chez:
|
2023-01-18 18:54:42 +03:00
|
|
|
needs: [initialise, quick-check]
|
2021-06-29 21:42:48 +03:00
|
|
|
runs-on: ubuntu-latest
|
2021-07-21 18:49:32 +03:00
|
|
|
if: |
|
2023-01-18 18:54:42 +03:00
|
|
|
(!contains(needs.initialise.outputs.commit_message, '[ci:')
|
2021-07-21 18:49:32 +03:00
|
|
|
|| contains(needs.initialise.outputs.commit_message, '[ci: nix]')
|
2022-12-09 00:06:17 +03:00
|
|
|
|| contains(needs.initialise.outputs.commit_message, '[ci: chez]'))
|
2021-06-29 21:42:48 +03:00
|
|
|
steps:
|
2023-01-18 18:54:42 +03:00
|
|
|
- uses: actions/checkout@v3
|
2021-06-29 21:42:48 +03:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2023-01-18 18:54:42 +03:00
|
|
|
- uses: cachix/install-nix-action@v18
|
2022-10-28 21:29:30 +03:00
|
|
|
- name: Test with nix
|
|
|
|
env:
|
|
|
|
NIX_CONFIG: "experimental-features = nix-command flakes"
|
|
|
|
run: nix build .#checks.x86_64-linux.idris2Tests -L
|
2021-06-29 21:42:48 +03:00
|
|
|
|
|
|
|
# RACKET
|
|
|
|
|
|
|
|
ubuntu-bootstrap-racket:
|
2023-01-18 18:54:42 +03:00
|
|
|
needs: [initialise, quick-check]
|
2021-06-29 21:42:48 +03:00
|
|
|
runs-on: ubuntu-latest
|
2021-07-21 18:49:32 +03:00
|
|
|
if: |
|
2022-04-20 14:42:58 +03:00
|
|
|
!contains(needs.initialise.outputs.commit_message, '[ci:')
|
2021-07-30 17:18:05 +03:00
|
|
|
|| contains(needs.initialise.outputs.commit_message, '[ci: ubuntu]')
|
2022-04-20 14:42:58 +03:00
|
|
|
|| contains(needs.initialise.outputs.commit_message, '[ci: racket]')
|
2021-07-22 14:27:34 +03:00
|
|
|
|
2021-06-29 21:42:48 +03:00
|
|
|
env:
|
|
|
|
IDRIS2_CG: racket
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-01-18 18:54:42 +03:00
|
|
|
uses: actions/checkout@v3
|
2021-06-29 21:42:48 +03:00
|
|
|
- name: Install build dependencies
|
|
|
|
run: |
|
|
|
|
sudo apt-get install -y racket
|
2021-12-25 22:09:12 +03:00
|
|
|
echo "$HOME/.idris2/bin" >> "$GITHUB_PATH"
|
2021-07-04 05:17:13 +03:00
|
|
|
- name: Make bootstrap folder readonly
|
|
|
|
run: chmod -R a-w bootstrap
|
2021-06-29 21:42:48 +03:00
|
|
|
- name: Build from bootstrap
|
|
|
|
run: make bootstrap-racket && make install
|
|
|
|
- name: Artifact Bootstrapped Idris2
|
2023-01-18 18:54:42 +03:00
|
|
|
uses: actions/upload-artifact@v3
|
2021-01-20 23:15:24 +03:00
|
|
|
with:
|
2021-06-29 21:42:48 +03:00
|
|
|
name: ubuntu-installed-bootstrapped-idris2-racket
|
2021-01-20 23:15:24 +03:00
|
|
|
path: ~/.idris2/
|
|
|
|
|
2021-06-29 21:42:48 +03:00
|
|
|
######################################################################
|
|
|
|
# Self-hosting builds and testing
|
|
|
|
######################################################################
|
|
|
|
|
|
|
|
# CHEZ
|
2021-01-20 23:15:24 +03:00
|
|
|
|
2021-06-29 21:42:48 +03:00
|
|
|
ubuntu-self-host-chez:
|
|
|
|
needs: ubuntu-bootstrap-chez
|
2021-01-20 23:15:24 +03:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
|
|
IDRIS2_CG: chez
|
2021-06-29 21:42:48 +03:00
|
|
|
SCHEME: scheme
|
2021-01-20 23:15:24 +03:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-01-18 18:54:42 +03:00
|
|
|
uses: actions/checkout@v3
|
2021-01-20 23:15:24 +03:00
|
|
|
- name: Download Idris2 Artifact
|
2023-01-18 18:54:42 +03:00
|
|
|
uses: actions/download-artifact@v3
|
2021-01-20 23:15:24 +03:00
|
|
|
with:
|
2021-06-29 21:42:48 +03:00
|
|
|
name: ubuntu-installed-bootstrapped-idris2-chez
|
2021-01-20 23:15:24 +03:00
|
|
|
path: ~/.idris2/
|
|
|
|
- name: Install build dependencies
|
|
|
|
run: |
|
2021-06-15 16:31:31 +03:00
|
|
|
sudo apt-get update
|
2022-07-28 13:55:01 +03:00
|
|
|
sudo apt-get install -y chezscheme
|
2021-12-25 22:09:12 +03:00
|
|
|
echo "$HOME/.idris2/bin" >> "$GITHUB_PATH"
|
|
|
|
chmod +x "$HOME/.idris2/bin/idris2" "$HOME/.idris2/bin/idris2_app/"*
|
2021-01-20 23:15:24 +03:00
|
|
|
- name: Build self-hosted
|
2021-05-27 13:57:39 +03:00
|
|
|
run: make all IDRIS2_BOOT="idris2 -Werror" && make install
|
2021-01-20 23:15:24 +03:00
|
|
|
- name: Test self-hosted
|
2022-10-21 15:35:33 +03:00
|
|
|
run: make ci-ubuntu-test INTERACTIVE=''
|
2021-01-20 23:15:24 +03:00
|
|
|
|
2021-06-29 21:42:48 +03:00
|
|
|
macos-self-host-chez:
|
|
|
|
needs: macos-bootstrap-chez
|
|
|
|
runs-on: macos-latest
|
|
|
|
env:
|
|
|
|
SCHEME: chez
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-01-18 18:54:42 +03:00
|
|
|
uses: actions/checkout@v3
|
2021-06-29 21:42:48 +03:00
|
|
|
- name: Download Idris2 Artifact
|
2023-01-18 18:54:42 +03:00
|
|
|
uses: actions/download-artifact@v3
|
2021-06-29 21:42:48 +03:00
|
|
|
with:
|
|
|
|
name: macos-installed-bootstrapped-idris2-chez
|
|
|
|
path: ~/.idris2/
|
|
|
|
- name: Install build dependencies
|
|
|
|
run: |
|
|
|
|
brew install chezscheme
|
|
|
|
brew install coreutils
|
2021-12-25 22:09:12 +03:00
|
|
|
echo "$HOME/.idris2/bin" >> "$GITHUB_PATH"
|
|
|
|
chmod +x "$HOME/.idris2/bin/idris2" "$HOME/.idris2/bin/idris2_app/"*
|
2021-06-29 21:42:48 +03:00
|
|
|
- name: Build self-hosted
|
|
|
|
run: make all IDRIS2_BOOT="idris2 -Werror" && make install
|
|
|
|
shell: bash
|
|
|
|
- name: Test self-hosted
|
2022-10-21 15:35:33 +03:00
|
|
|
run: make ci-macos-test INTERACTIVE=''
|
2021-06-29 21:42:48 +03:00
|
|
|
shell: bash
|
|
|
|
|
|
|
|
# RACKET
|
|
|
|
|
|
|
|
ubuntu-self-host-racket:
|
|
|
|
needs: ubuntu-bootstrap-racket
|
2021-01-20 23:15:24 +03:00
|
|
|
runs-on: ubuntu-latest
|
2021-10-26 14:43:39 +03:00
|
|
|
if: false
|
2021-01-20 23:15:24 +03:00
|
|
|
env:
|
|
|
|
IDRIS2_CG: racket
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-01-18 18:54:42 +03:00
|
|
|
uses: actions/checkout@v3
|
2021-01-20 23:15:24 +03:00
|
|
|
- name: Download Idris2 Artifact
|
2023-01-18 18:54:42 +03:00
|
|
|
uses: actions/download-artifact@v3
|
2021-01-20 23:15:24 +03:00
|
|
|
with:
|
2021-06-29 21:42:48 +03:00
|
|
|
name: ubuntu-installed-bootstrapped-idris2-racket
|
2021-01-20 23:15:24 +03:00
|
|
|
path: ~/.idris2/
|
|
|
|
- name: Install build dependencies
|
|
|
|
run: |
|
|
|
|
sudo apt-get install -y racket
|
2021-12-25 22:09:12 +03:00
|
|
|
echo "$HOME/.idris2/bin" >> "$GITHUB_PATH"
|
|
|
|
chmod +x "$HOME/.idris2/bin/idris2" "$HOME/.idris2/bin/idris2_app/"*
|
2021-01-20 23:15:24 +03:00
|
|
|
- name: Build self-hosted
|
2021-05-27 13:57:39 +03:00
|
|
|
run: make all IDRIS2_BOOT="idris2 -Werror" && make install
|
2021-01-20 23:15:24 +03:00
|
|
|
- name: Test self-hosted
|
2022-10-21 15:35:33 +03:00
|
|
|
run: make ci-ubuntu-test INTERACTIVE=''
|
2021-01-20 23:15:24 +03:00
|
|
|
|
2021-06-29 21:42:48 +03:00
|
|
|
ubuntu-self-host-previous-version:
|
2023-01-18 18:54:42 +03:00
|
|
|
needs: [initialise, quick-check]
|
2021-01-20 23:15:24 +03:00
|
|
|
runs-on: ubuntu-latest
|
2021-07-21 18:49:32 +03:00
|
|
|
if: |
|
|
|
|
!contains(needs.initialise.outputs.commit_message, '[ci:')
|
|
|
|
|| contains(needs.initialise.outputs.commit_message, '[ci: ubuntu]')
|
2021-07-27 10:58:40 +03:00
|
|
|
|| contains(needs.initialise.outputs.commit_message, '[ci: libs]')
|
2021-01-20 23:15:24 +03:00
|
|
|
env:
|
|
|
|
IDRIS2_CG: chez
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-01-18 18:54:42 +03:00
|
|
|
uses: actions/checkout@v3
|
2021-01-20 23:15:24 +03:00
|
|
|
- name: Download Idris2 Artifact
|
2023-01-18 18:54:42 +03:00
|
|
|
uses: actions/download-artifact@v3
|
2021-01-20 23:15:24 +03:00
|
|
|
with:
|
2023-01-18 18:54:42 +03:00
|
|
|
name: ubuntu-installed-idris2-${{ env.IDRIS2_MINIMUM_COMPAT_VERSION }}-chez
|
2021-01-20 23:15:24 +03:00
|
|
|
path: ~/.idris2/
|
|
|
|
- name: Install build dependencies
|
|
|
|
run: |
|
2021-06-15 16:31:31 +03:00
|
|
|
sudo apt-get update
|
2022-07-28 13:55:01 +03:00
|
|
|
sudo apt-get install -y chezscheme
|
2021-12-25 22:09:12 +03:00
|
|
|
echo "$HOME/.idris2/bin" >> "$GITHUB_PATH"
|
|
|
|
chmod +x "$HOME/.idris2/bin/idris2" "$HOME/.idris2/bin/idris2_app/"*
|
2021-01-20 23:15:24 +03:00
|
|
|
- name: Build self-hosted from previous version
|
2021-05-27 13:57:39 +03:00
|
|
|
run: make all IDRIS2_BOOT="idris2 -Werror" && make install
|
2021-01-20 23:15:24 +03:00
|
|
|
- name: Test self-hosted from previous version
|
2022-10-21 15:35:33 +03:00
|
|
|
run: make ci-ubuntu-test INTERACTIVE=''
|
2021-01-20 23:15:24 +03:00
|
|
|
- name: Artifact Idris2
|
2023-01-18 18:54:42 +03:00
|
|
|
uses: actions/upload-artifact@v3
|
2021-01-20 23:15:24 +03:00
|
|
|
with:
|
2021-02-04 21:41:47 +03:00
|
|
|
name: idris2-nightly-chez
|
2021-01-20 23:15:24 +03:00
|
|
|
path: ~/.idris2/
|
|
|
|
|
2021-07-21 16:35:21 +03:00
|
|
|
windows-self-host-racket:
|
2023-01-18 18:54:42 +03:00
|
|
|
needs: [initialise, windows-bootstrap-chez]
|
2021-07-21 16:35:21 +03:00
|
|
|
runs-on: windows-latest
|
2021-07-22 14:27:34 +03:00
|
|
|
if: |
|
|
|
|
!contains(needs.initialise.outputs.commit_message, '[ci:')
|
|
|
|
|| contains(needs.initialise.outputs.commit_message, '[ci: windows]')
|
|
|
|
|| contains(needs.initialise.outputs.commit_message, '[ci: racket]')
|
2021-07-21 16:35:21 +03:00
|
|
|
env:
|
|
|
|
IDRIS2_CG: racket
|
|
|
|
MSYSTEM: MINGW64
|
|
|
|
MSYS2_PATH_TYPE: inherit
|
|
|
|
CC: gcc
|
|
|
|
RACKET_RACO: raco
|
|
|
|
steps:
|
|
|
|
- name: Init
|
|
|
|
run: |
|
|
|
|
git config --global core.autocrlf false
|
|
|
|
echo "PWD=$(c:\msys64\usr\bin\cygpath -u $(pwd))" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
|
|
|
|
- name: Checkout
|
2023-01-18 18:54:42 +03:00
|
|
|
uses: actions/checkout@v3
|
2021-07-21 16:35:21 +03:00
|
|
|
- name: Get Chez Scheme
|
|
|
|
run: |
|
|
|
|
git clone --depth 1 https://github.com/cisco/ChezScheme
|
2022-03-04 01:29:25 +03:00
|
|
|
c:\msys64\usr\bin\bash -l -c "pacman -S --noconfirm tar make mingw-w64-x86_64-gcc"
|
2021-07-21 16:35:21 +03:00
|
|
|
echo "PWD=$(c:\msys64\usr\bin\cygpath -u $(pwd))" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
|
|
|
|
- name: Configure and Build Chez Scheme
|
|
|
|
run: |
|
|
|
|
c:\msys64\usr\bin\bash -l -c "cd $env:PWD && cd ChezScheme && ./configure --threads && make"
|
|
|
|
- name: Set Path
|
|
|
|
run: |
|
|
|
|
$chez="$(pwd)\ChezScheme\ta6nt\bin\ta6nt"
|
|
|
|
$idris="$(pwd)\.idris2"
|
|
|
|
echo "$chez" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
|
|
|
|
echo "$idris\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
|
|
|
|
echo "IDRIS_PREFIX=$idris" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
|
|
|
|
echo "PREFIX=$(c:\msys64\usr\bin\cygpath -u $idris)" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
|
|
|
|
- name: Download Idris2 Artifact
|
2023-01-18 18:54:42 +03:00
|
|
|
uses: actions/download-artifact@v3
|
2021-07-21 16:35:21 +03:00
|
|
|
with:
|
|
|
|
name: windows-installed-bootstrapped-idris2-chez
|
|
|
|
path: ${{ env.IDRIS_PREFIX }}
|
|
|
|
- name: Install build dependencies
|
|
|
|
uses: Bogdanp/setup-racket@v1.4
|
|
|
|
with:
|
|
|
|
variant: 'CS'
|
|
|
|
version: 'stable'
|
|
|
|
distribution: 'full'
|
|
|
|
- name: Self host
|
|
|
|
run: |
|
|
|
|
c:\msys64\usr\bin\bash -l -c "cd $env:PWD && make"
|
|
|
|
# TODO: fix the broken tests!
|
|
|
|
# - name: Test
|
2022-10-21 15:35:33 +03:00
|
|
|
# run: c:\msys64\usr\bin\bash -l -c "cd $env:PWD && make ci-windows-test"
|
2021-07-21 16:35:21 +03:00
|
|
|
- name: Install
|
|
|
|
run: c:\msys64\usr\bin\bash -l -c "cd $env:PWD && make install"
|
|
|
|
|
2021-06-29 21:42:48 +03:00
|
|
|
######################################################################
|
|
|
|
# Ubuntu API
|
|
|
|
######################################################################
|
|
|
|
|
|
|
|
ubuntu-build-api:
|
|
|
|
needs: ubuntu-bootstrap-chez
|
2021-01-20 23:15:24 +03:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
|
|
IDRIS2_CG: chez
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-01-18 18:54:42 +03:00
|
|
|
uses: actions/checkout@v3
|
2021-01-20 23:15:24 +03:00
|
|
|
- name: Download Idris2 Artifact
|
2023-01-18 18:54:42 +03:00
|
|
|
uses: actions/download-artifact@v3
|
2021-01-20 23:15:24 +03:00
|
|
|
with:
|
2021-06-29 21:42:48 +03:00
|
|
|
name: ubuntu-installed-bootstrapped-idris2-chez
|
2021-01-20 23:15:24 +03:00
|
|
|
path: ~/.idris2/
|
|
|
|
- name: Install build dependencies
|
|
|
|
run: |
|
2021-06-15 16:31:31 +03:00
|
|
|
sudo apt-get update
|
2022-07-28 13:55:01 +03:00
|
|
|
sudo apt-get install -y chezscheme
|
2021-12-25 22:09:12 +03:00
|
|
|
echo "$HOME/.idris2/bin" >> "$GITHUB_PATH"
|
|
|
|
chmod +x "$HOME/.idris2/bin/idris2" "$HOME/.idris2/bin/idris2_app/"*
|
2021-01-20 23:15:24 +03:00
|
|
|
- name: Build API
|
|
|
|
run: make install-api
|
|
|
|
shell: bash
|
|
|
|
- name: Test API
|
|
|
|
run: cd tests/idris2/api001 && ./run idris2
|
|
|
|
shell: bash
|
2021-07-27 10:58:40 +03:00
|
|
|
|
|
|
|
######################################################################
|
|
|
|
# Ubuntu testing some libraries.
|
|
|
|
# We are particularly interested in libraries that are heavily using
|
|
|
|
# dependent types, that are prone to find bugs and regressions in the
|
|
|
|
# compiler.
|
|
|
|
######################################################################
|
|
|
|
|
|
|
|
ubuntu-test-collie:
|
2023-01-18 18:54:42 +03:00
|
|
|
needs: [initialise, ubuntu-self-host-previous-version]
|
2021-07-27 10:58:40 +03:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
if: |
|
|
|
|
!contains(needs.initialise.outputs.commit_message, '[ci:')
|
|
|
|
|| contains(needs.initialise.outputs.commit_message, '[ci: libs]')
|
|
|
|
env:
|
|
|
|
IDRIS2_CG: chez
|
|
|
|
steps:
|
|
|
|
- name: Download Idris2 Artifact
|
2023-01-18 18:54:42 +03:00
|
|
|
uses: actions/download-artifact@v3
|
2021-07-27 10:58:40 +03:00
|
|
|
with:
|
|
|
|
name: idris2-nightly-chez
|
|
|
|
path: ~/.idris2/
|
|
|
|
- name: Install build dependencies
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
2022-07-28 13:55:01 +03:00
|
|
|
sudo apt-get install -y chezscheme
|
2021-12-25 22:09:12 +03:00
|
|
|
echo "$HOME/.idris2/bin" >> "$GITHUB_PATH"
|
|
|
|
chmod +x "$HOME/.idris2/bin/idris2" "$HOME/.idris2/bin/idris2_app/"*
|
2021-07-27 10:58:40 +03:00
|
|
|
- name: Checkout
|
2023-01-18 18:54:42 +03:00
|
|
|
uses: actions/checkout@v3
|
2021-07-27 10:58:40 +03:00
|
|
|
with:
|
|
|
|
repository: 'ohad/collie'
|
|
|
|
- name: Build Collie
|
|
|
|
run: |
|
|
|
|
make
|
|
|
|
|
|
|
|
ubuntu-test-frex:
|
2023-01-18 18:54:42 +03:00
|
|
|
needs: [initialise, ubuntu-self-host-previous-version]
|
2021-07-27 10:58:40 +03:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
if: |
|
|
|
|
!contains(needs.initialise.outputs.commit_message, '[ci:')
|
|
|
|
|| contains(needs.initialise.outputs.commit_message, '[ci: libs]')
|
|
|
|
env:
|
|
|
|
IDRIS2_CG: chez
|
|
|
|
steps:
|
|
|
|
- name: Download Idris2 Artifact
|
2023-01-18 18:54:42 +03:00
|
|
|
uses: actions/download-artifact@v3
|
2021-07-27 10:58:40 +03:00
|
|
|
with:
|
|
|
|
name: idris2-nightly-chez
|
|
|
|
path: ~/.idris2/
|
|
|
|
- name: Install build dependencies
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
2022-07-28 13:55:01 +03:00
|
|
|
sudo apt-get install -y chezscheme
|
2021-12-25 22:09:12 +03:00
|
|
|
echo "$HOME/.idris2/bin" >> "$GITHUB_PATH"
|
|
|
|
chmod +x "$HOME/.idris2/bin/idris2" "$HOME/.idris2/bin/idris2_app/"*
|
2021-07-27 10:58:40 +03:00
|
|
|
- name: Checkout
|
2023-01-18 18:54:42 +03:00
|
|
|
uses: actions/checkout@v3
|
2021-07-27 10:58:40 +03:00
|
|
|
with:
|
|
|
|
repository: 'frex-project/idris-frex'
|
|
|
|
- name: Build Frex
|
|
|
|
run: |
|
|
|
|
make
|
Experimental Scheme based evaluator (#1956)
This is for compiled evaluation at compile-time, for full normalisation. You can try it by setting the evaluation mode to scheme (that is, :set eval scheme at the REPL). It's certainly an order of magnitude faster than the standard evaluator, based on my playing around with it, although still quite a bit slower than compilation for various reasons, including:
* It has to evaluate under binders, and therefore deal with blocked symbols
* It has to maintain enough information to be able to read back a Term from the evaluated scheme object, which means retaining things like types and other metadata
* We can't do a lot of the optimisations we'd do for runtime evaluation particularly setting things up so we don't need to do arity checking
Also added a new option evaltiming (set with :set evaltiming) to display how long evaluation itself takes, which is handy for checking performance.
I also don't think we should aim to replace the standard evaluator, in general, at least not for a while, because that will involve rewriting a lot of things and working out how to make it work as Call By Name (which is clearly possible, but fiddly).
Still, it's going to be interesting to experiment with it! I think it will be a good idea to use it for elaborator reflection and type providers when we eventually get around to implementing them.
Original commit details:
* Add ability to evaluate open terms via Scheme
Still lots of polish and more formal testing to do here before we can
use it in practice, but you can still use ':scheme <term>' at the REPL
to evaluate an expression by compiling to scheme then reading back the
result.
Also added 'evaltiming' option at the REPL, which, when set, displays
how long normalisaton takes (doesn't count resugaring, just the
normalisation step).
* Add scheme evaluation mode
Different when evaluating everything, vs only evaluating visible things.
We want the latter when type checking, the former at the REPL.
* Bring support.rkt up to date
A couple of missing things required for interfacing with scheme objects
* More Scheme readback machinery
We need these things in the next version so that the next-but-one
version can have a scheme evaluator!
* Add top level interface to scheme based normaliser
Also check it's available - currently chez only - and revert to the
default slow normaliser if it's not.
* Bring Context up to date with changes in main
* Now need Idris 0.5.0 to build
* Add SNF type for scheme values
This will allow us to incrementally evaluate under lambdas, which will
be useful for elaborator reflection and type providers.
* Add Quote for scheme evaluator
So, we can now get a weak head normal form, and evaluate the scope of
a binder when we have an argument to plug in, or just quote back the
whole thing.
* Add new 'scheme' evaluator mode at the REPL
Replacing the temporary 'TmpScheme', this is a better way to try out the
scheme based evaluator
* Fix name generation for new UN format
* Add scheme evaluator support to Racket
* Add another scheme eval test
With metavariables this time
* evaltiming now times execution too
This was handy for finding out the difference between the scheme based
evaluator and compilation. Compilation was something like 20 times
faster in my little test, so that'd be about 4-500 times faster than the
standard evaluator. Ouch!
* Fix whitespace errors
* Error handling when trying to evaluate Scheme
2021-09-24 22:38:55 +03:00
|
|
|
make test
|
2021-12-07 17:50:39 +03:00
|
|
|
|
|
|
|
ubuntu-test-elab:
|
2023-01-18 18:54:42 +03:00
|
|
|
needs: [initialise, ubuntu-self-host-previous-version]
|
2021-12-07 17:50:39 +03:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
if: |
|
|
|
|
!contains(needs.initialise.outputs.commit_message, '[ci:')
|
|
|
|
|| contains(needs.initialise.outputs.commit_message, '[ci: libs]')
|
|
|
|
env:
|
|
|
|
IDRIS2_CG: chez
|
|
|
|
steps:
|
|
|
|
- name: Download Idris2 Artifact
|
2023-01-18 18:54:42 +03:00
|
|
|
uses: actions/download-artifact@v3
|
2021-12-07 17:50:39 +03:00
|
|
|
with:
|
|
|
|
name: idris2-nightly-chez
|
|
|
|
path: ~/.idris2/
|
|
|
|
- name: Install build dependencies
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
2022-07-28 13:55:01 +03:00
|
|
|
sudo apt-get install -y chezscheme
|
2021-12-25 22:09:12 +03:00
|
|
|
echo "$HOME/.idris2/bin" >> "$GITHUB_PATH"
|
|
|
|
chmod +x "$HOME/.idris2/bin/idris2" "$HOME/.idris2/bin/idris2_app/"*
|
2021-12-07 17:50:39 +03:00
|
|
|
- name: Checkout
|
2023-01-18 18:54:42 +03:00
|
|
|
uses: actions/checkout@v3
|
2021-12-07 17:50:39 +03:00
|
|
|
with:
|
|
|
|
repository: 'stefan-hoeck/idris2-elab-util'
|
|
|
|
- name: Build idris2-elab-util
|
|
|
|
run: |
|
|
|
|
make all
|
2022-04-20 14:42:58 +03:00
|
|
|
|
|
|
|
######################################################################
|
|
|
|
# Ubuntu using katla to build html doc of the libs
|
|
|
|
######################################################################
|
|
|
|
|
|
|
|
ubuntu-katla:
|
2023-01-18 18:54:42 +03:00
|
|
|
needs: [initialise, ubuntu-test-collie]
|
2022-04-20 14:42:58 +03:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
if: |
|
|
|
|
!contains(needs.initialise.outputs.commit_message, '[ci:')
|
|
|
|
|| contains(needs.initialise.outputs.commit_message, '[ci: html]')
|
|
|
|
env:
|
|
|
|
IDRIS2_CG: chez
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- name: Initialise DEPLOY variable
|
|
|
|
run: |
|
|
|
|
if [[ '${{ github.ref }}' == 'refs/heads/main' ]]; then
|
|
|
|
echo "IDRIS2_DEPLOY=true" >> "$GITHUB_ENV"
|
|
|
|
fi
|
|
|
|
|
|
|
|
- name: Download Idris2 Artifact
|
2023-01-18 18:54:42 +03:00
|
|
|
uses: actions/download-artifact@v3
|
2022-04-20 14:42:58 +03:00
|
|
|
with:
|
|
|
|
name: idris2-nightly-chez
|
|
|
|
path: ~/.idris2/
|
|
|
|
- name: Install build dependencies
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
2022-07-28 13:55:01 +03:00
|
|
|
sudo apt-get install -y chezscheme markdown
|
2022-04-20 14:42:58 +03:00
|
|
|
echo "$HOME/.idris2/bin" >> "$GITHUB_PATH"
|
|
|
|
chmod +x "$HOME/.idris2/bin/idris2" "$HOME/.idris2/bin/idris2_app/"*
|
|
|
|
- name: Checkout idris2
|
2023-01-18 18:54:42 +03:00
|
|
|
uses: actions/checkout@v3
|
2022-04-20 14:42:58 +03:00
|
|
|
- name: Build API
|
|
|
|
run: make install-api
|
|
|
|
shell: bash
|
|
|
|
- name: Checkout collie
|
2023-01-18 18:54:42 +03:00
|
|
|
uses: actions/checkout@v3
|
2022-04-20 14:42:58 +03:00
|
|
|
with:
|
|
|
|
repository: 'ohad/collie'
|
|
|
|
- name: Build and install Collie
|
|
|
|
run: |
|
|
|
|
make install
|
|
|
|
- name: Checkout idrall
|
2023-01-18 18:54:42 +03:00
|
|
|
uses: actions/checkout@v3
|
2022-04-20 14:42:58 +03:00
|
|
|
with:
|
|
|
|
repository: 'alexhumphreys/idrall'
|
|
|
|
- name: Build and install idrall
|
|
|
|
run: |
|
|
|
|
make install
|
|
|
|
- name: Checkout katla
|
2023-01-18 18:54:42 +03:00
|
|
|
uses: actions/checkout@v3
|
2022-04-20 14:42:58 +03:00
|
|
|
with:
|
|
|
|
repository: 'idris-community/katla'
|
|
|
|
- name: Build and install katla
|
|
|
|
run: |
|
|
|
|
make
|
|
|
|
mkdir -p "${HOME}"/.local/bin/
|
|
|
|
cp -r build/exec/* "${HOME}"/.local/bin/
|
|
|
|
echo "${HOME}/.local/bin" >> "$GITHUB_PATH"
|
|
|
|
- name: Checkout idris2
|
2023-01-18 18:54:42 +03:00
|
|
|
uses: actions/checkout@v3
|
2022-05-18 10:43:47 +03:00
|
|
|
- name: Build html doc & landing page
|
2022-04-20 14:42:58 +03:00
|
|
|
run: |
|
|
|
|
make -C libs/prelude/ install docs IDRIS2=idris2
|
|
|
|
make -C libs/base/ install docs IDRIS2=idris2
|
|
|
|
make -C libs/contrib/ install docs IDRIS2=idris2
|
|
|
|
make -C libs/network/ install docs IDRIS2=idris2
|
|
|
|
make -C libs/linear/ install docs IDRIS2=idris2
|
|
|
|
make -C libs/test/ install docs IDRIS2=idris2
|
|
|
|
make -C libs/papers/ install docs IDRIS2=idris2
|
|
|
|
|
|
|
|
cd .github/scripts
|
|
|
|
./katla.sh
|
2022-05-18 10:43:47 +03:00
|
|
|
cd -
|
|
|
|
cd www/
|
|
|
|
./katla.sh
|
|
|
|
cd -
|
|
|
|
cp -r www/html/* .github/scripts/html/
|
2022-04-20 14:42:58 +03:00
|
|
|
- name: Deploy HTML
|
|
|
|
uses: JamesIves/github-pages-deploy-action@4.1.3
|
|
|
|
if: ${{ success() && env.IDRIS2_DEPLOY }}
|
|
|
|
|
|
|
|
with:
|
|
|
|
branch: gh-pages
|
|
|
|
folder: .github/scripts/html/
|
|
|
|
git-config-name: Github Actions
|