-
Notifications
You must be signed in to change notification settings - Fork 27
129 lines (121 loc) · 3.36 KB
/
ci-lib.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
---
name: Build
on:
push:
branches:
- '**'
tags:
- '**'
pull_request:
branches:
- main
schedule:
- cron: '0 21 * * *'
permissions: read-all
defaults:
run:
shell: bash
jobs:
build:
name: Build pack with Idris2 latest
runs-on: ubuntu-latest
env:
PACK_DIR: /root/.pack
strategy:
fail-fast: false
container: ghcr.io/stefan-hoeck/idris2-pack:latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build lib
run: pack typecheck pack.ipkg
- name: Build admin
run: pack typecheck pack-admin.ipkg
micropack:
name: Bootstrap with micropack
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install scheme
run: |
sudo apt-get update
sudo apt-get install --yes chezscheme libgmp3-dev nodejs
- name: Run installation script
run: |
make micropack SCHEME=chezscheme
echo "$HOME/.pack/bin" >> "$GITHUB_PATH"
- name: Install application
run: pack install graph
- name: Run examples
run: |
cd example1
pack run chem-formula-example-test -n 1000
cd ../example2
pack run chem-smiles-example-test -n 1000
micropack-racket:
name: Bootstrap with micropack-racket
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install scheme
run: |
sudo apt-get update
sudo apt-get install --yes racket libgmp3-dev nodejs
- name: Run installation script
run: |
make micropack-racket
echo "$HOME/.pack/bin" >> "$GITHUB_PATH"
- name: Install application
run: pack install graph
- name: Run examples
run: |
cd example1
pack run chem-formula-example-test -n 1000
cd ../example2
pack run chem-smiles-example-test -n 1000
shellscript:
name: Bootstrap with the shell script
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install scheme
run: |
sudo apt-get update
sudo apt-get install --yes chezscheme libgmp3-dev nodejs
- name: Run installation script
run: |
echo chezscheme | bash -c ./install.bash
echo "$HOME/.pack/bin" >> "$GITHUB_PATH"
- name: Install application
run: pack install graph
- name: Run examples
run: |
cd example1
pack run chem-formula-example-test -n 1000
cd ../example2
pack run chem-smiles-example-test -n 1000
shellscript-racket:
name: Bootstrap with the shell script and racket
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install scheme
run: |
sudo apt-get update
sudo apt-get install --yes racket libgmp3-dev nodejs
- name: Run installation script
run: |
echo racket | bash -c ./install.bash
echo "$HOME/.pack/bin" >> "$GITHUB_PATH"
- name: Install application
run: pack install graph
- name: Run examples
run: |
cd example1
pack run chem-formula-example-test -n 1000
cd ../example2
pack run chem-smiles-example-test -n 1000