-
Notifications
You must be signed in to change notification settings - Fork 2
57 lines (50 loc) · 1.37 KB
/
build-and-test.yml
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
49
50
51
52
53
54
55
56
57
name: test-suite
on:
push:
paths-ignore: ['**.rst']
pull_request:
branches:
- main
- master
# This enables the Run Workflow button on the Actions tab.
workflow_dispatch:
jobs:
build-and-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
# Install dylan-compiler and dylan binaries in the current PATH.
- uses: dylan-lang/install-opendylan@v3
- name: Build and run test suite
env:
DYLAN_CATALOG: ext/pacman-catalog
DYLAN: dylan-root
run: |
mkdir -p ${DYLAN}
make test
- name: Install
env:
DYLAN_CATALOG: ext/pacman-catalog
DYLAN: dylan-root
run: |
mkdir -p ${DYLAN}
make install
- name: Exercise installed dylan-tool
env:
DYLAN_CATALOG: ext/pacman-catalog
DYLAN: dylan-root
run: |
dylan_exe="$(realpath ${DYLAN}/bin/dylan-tool-app)"
export DYLAN_CATALOG="$(realpath ${DYLAN_CATALOG})"
${dylan_exe} new library --force-package abc strings@1.1
cd abc
${dylan_exe} update
${dylan_exe} status
${dylan_exe} list
${dylan_exe} build abc-test-suite
_build/bin/abc-test-suite