Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 25 additions & 20 deletions .github/workflows/ci-bootstrap.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,23 @@
######################################################################
# Unlike the main yml file this uses the LTS version of chezscheme,
# not the hirsute one. The main purpose is to make sure that
# `make bootstrap` does not rely on `__collect_safe`.
#
# Note that we are *not* running on ubuntu-latest so this needs manual
# upgrades if we want to jump on a newer github actions environment.
######################################################################
# Check bootstrap with the minimum supported Chez Scheme version.

name: Bootstrap

env:
MIN_CHEZ_VERSION: 9.5.1
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where did you get this number?


on:
push:
paths:
paths: &paths
- 'bootstrap/idris2_app/idris2.ss'
- '.github/workflows/ci-bootstrap.yml'
pull_request:
paths:
- 'bootstrap/idris2_app/idris2.ss'
- '.github/workflows/ci-bootstrap.yml'
paths: *paths

jobs:

initialise:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
steps:
- name: Checkout Project
- name: Checkout
uses: actions/checkout@v4
with:
# for pull_request so we can do HEAD^2
Expand All @@ -45,19 +38,31 @@ jobs:

bootstrap:
needs: initialise
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
if: |
!contains(needs.initialise.outputs.commit_message, '[ci: skip]')
env:
IDRIS2_CG: chez
SCHEME: scheme
steps:
- name: Checkout
- name: Checkout project
uses: actions/checkout@v4
- name: Install build dependencies (LTS versions)

- name: Install build dependencies
run: |
sudo apt-get update
sudo apt-get install -y chezscheme
echo "$HOME/.idris2/bin" >> "$GITHUB_PATH"
sudo apt-get install -y uuid-dev
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's this for? I can't see any mention of it in the chez build docs https://github.com/cisco/ChezScheme/blob/main/BUILDING


- name: Build and Install Chez Scheme
run: |
git clone --depth 1 --branch "v${MIN_CHEZ_VERSION}" https://github.com/cisco/ChezScheme.git
cd ChezScheme
# Newer GCC reports maybe-uninitialized in Chez 9.5.1
./configure --threads --disable-x11 CFLAGS=-Wno-error=maybe-uninitialized
make -j$(nproc)
sudo make install
cd ..
rm -rf ChezScheme

- name: Build bootstrap
run: make bootstrap
5 changes: 4 additions & 1 deletion INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ nix profile install github:idris-lang/Idris2
The easiest way to install from source is via the existing generated Scheme
code. The requirements are:

- A Scheme compiler; either Chez Scheme (default), or Racket.
- A Scheme compiler. One of
- Chez Scheme (default).\
Version `9.5.1` or newer; on Apple Silicon `10.0.0` or newer.
- Racket.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there any benefit to building the bootstrap build on racket too?

- `bash`, `GNU make`, `gcc` or `clang`, `sha256sum` and `GMP`. On Linux, you probably already
have these. On macOS and major BSD flavours, you can install them using a
package manager: for instance, on macOS, you can install with the
Expand Down