-
-
Notifications
You must be signed in to change notification settings - Fork 3
76 lines (76 loc) · 2.45 KB
/
build.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
name: build
on: [create, workflow_dispatch]
permissions:
contents: write
jobs:
build:
strategy:
matrix:
platform: [ubuntu-latest, macOS-latest, windows-latest]
fail-fast: false
runs-on: ${{ matrix.platform }}
env:
LISP: sbcl-bin
steps:
- name: Restore cache
id: cache-ql
uses: actions/cache@v3
with:
path: |
~/.roswell
~/.cache/common-lisp
~/AppData/Local/cache
key: ${{ runner.os }}-ql
- name: Install Lisp
uses: 40ants/setup-lisp@v2
- name: Install env
if: steps.cache-ql.outputs.cache-hit != 'true'
shell: lispsh -eo pipefail {0}
run: |
ros run -- --noinform \
--eval '(ql-dist:install-dist "http://dist.shirakumo.org/shirakumo.txt" :prompt NIL)' \
--non-interactive
- name: Fuck you GIT
if: runner.os == 'windows'
shell: bash
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- uses: actions/checkout@v1
- name: Build the library
shell: lispsh -eo pipefail {0}
run: |
ros run -- --noinform \
--eval "(push \"$GITHUB_WORKSPACE\" ql:*local-project-directories*)" \
--eval '(ql:quickload :redist/standalone)' \
--non-interactive
- name: Build the binary
shell: lispsh -eo pipefail {0}
run: |
ros run -- --noinform \
--eval "(push \"$GITHUB_WORKSPACE\" ql:*local-project-directories*)" \
--eval '(asdf:make :redist/standalone)' \
--non-interactive
- name: Create release ZIP
if: runner.os != 'windows'
shell: bash
run: |
zip -r redist-${{ runner.os }}.zip redist template
- name: Make release ZIP
if: runner.os == 'windows'
shell: powershell
run: |
Compress-Archive -Path redist.exe,template -Destination redist-${{ runner.os }}.zip
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: redist-${{ runner.os }}
path: redist-${{ runner.os }}.zip
- name: Create release
id: create_release
uses: ncipollo/release-action@v1
continue-on-error: true
with:
allowUpdates: true
name: Release ${{ github.ref_name }}
artifacts: redist-${{ runner.os }}.zip