Skip to content

Commit 9fac3d7

Browse files
GitHub Actions: Do a bootstrap build.
This is only on `ubuntu-20.04` for now. The `macos-latest` bootstrap is not working with the batteries-included download due to a broken C compiler. On `ubuntu-22.04`, some of the numerics tests fail as conditions aren't getting signaled for floating point errors. I don't know why. We're using the 2020.1 release for now for no real reason.
1 parent ff1e85e commit 9fac3d7

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/bootstrap.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Bootstrap
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
matrix:
10+
os: [ubuntu-20.04]
11+
steps:
12+
- uses: actions/checkout@v3
13+
with:
14+
submodules: recursive
15+
- name: Install Dependencies
16+
run: |
17+
if [ "$RUNNER_OS" == "Linux" ]; then
18+
sudo apt-get install libgc-dev
19+
fi
20+
if [ "$RUNNER_OS" == "macOS" ]; then
21+
brew install autoconf automake bdw-gc
22+
fi
23+
shell: bash
24+
- name: Install bootstrap compiler
25+
run: |
26+
if [ "$RUNNER_OS" == "Linux" ]; then
27+
curl -LO https://github.com/dylan-lang/opendylan/releases/download/v2020.1.0/opendylan-2020.1-x86_64-linux.tar.bz2
28+
tar xvf opendylan-2020.1-x86_64-linux.tar.bz2
29+
fi
30+
if [ "$RUNNER_OS" == "macOS" ]; then
31+
curl -LO https://github.com/dylan-lang/opendylan/releases/download/v2020.1.0/opendylan-2020.1-x86_64-darwin.tar.bz2
32+
tar xvf opendylan-2020.1-x86_64-darwin.tar.bz2
33+
fi
34+
echo "`pwd`/opendylan-2020.1/bin" >> $GITHUB_PATH
35+
- name: Generate configure
36+
run: ./autogen.sh
37+
- name: Configure
38+
run: ./configure
39+
- name: Build
40+
run: make
41+
- name: Run Tests
42+
run: make check

0 commit comments

Comments
 (0)