-
Notifications
You must be signed in to change notification settings - Fork 403
[ ci ] Update ci-bootstrap.yml
#3729
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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 | ||
|
|
||
| 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 | ||
|
|
@@ -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 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 | ||
|
|
||
There was a problem hiding this comment.
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?