Skip to content

Commit 0a73f37

Browse files
committed
ci: build binaries and upload them
1 parent 112206e commit 0a73f37

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
build:
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
os:
13+
- windows-latest
14+
- ubuntu-latest
15+
- macos-latest
16+
steps:
17+
- uses: actions/checkout@master
18+
- uses: aminya/setup-scheme@master
19+
with:
20+
implementation: chicken
21+
22+
- name: Build
23+
run: |
24+
csc -s etc.scm -j etc
25+
csc -s format.scm -j format
26+
csc -static main.scm -o scheme-format
27+
28+
- name: Zip Binary File
29+
if: "!${{ contains(matrix.os, 'windows') }}"
30+
run: |
31+
zip -9 -j scheme-format-${{ runner.os }}.zip scheme-format
32+
33+
- name: Zip Binary Windows
34+
if: ${{ contains(matrix.os, 'windows') }}
35+
run: |
36+
zip -9 -j scheme-format-${{ runner.os }}.zip scheme-format.exe
37+
38+
- name: Upload Artifact
39+
uses: actions/upload-artifact@v2
40+
with:
41+
path: scheme-format-${{ runner.os }}.zip

0 commit comments

Comments
 (0)