-
Notifications
You must be signed in to change notification settings - Fork 69
48 lines (46 loc) · 1.41 KB
/
bootstrap.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Bootstrap
on:
push:
paths-ignore:
- 'documentation/**'
pull_request:
paths-ignore:
- 'documentation/**'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04]
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Dependencies
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
sudo apt-get install libgc-dev
fi
if [ "$RUNNER_OS" == "macOS" ]; then
brew install autoconf automake bdw-gc
fi
shell: bash
- name: Install bootstrap compiler
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
curl -LO https://github.com/dylan-lang/opendylan/releases/download/v2020.1.0/opendylan-2020.1-x86_64-linux.tar.bz2
tar xvf opendylan-2020.1-x86_64-linux.tar.bz2
fi
if [ "$RUNNER_OS" == "macOS" ]; then
curl -LO https://github.com/dylan-lang/opendylan/releases/download/v2020.1.0/opendylan-2020.1-x86_64-darwin.tar.bz2
tar xvf opendylan-2020.1-x86_64-darwin.tar.bz2
fi
echo "`pwd`/opendylan-2020.1/bin" >> $GITHUB_PATH
- name: Generate configure
run: ./autogen.sh
- name: Configure
run: ./configure
- name: Build
run: make
- name: Run Tests
run: make check