Skip to content
This repository was archived by the owner on Aug 13, 2025. It is now read-only.
/ trial Public archive

Commit 0cfc152

Browse files
committed
Particle studio build
1 parent 225319b commit 0cfc152

File tree

1 file changed

+77
-0
lines changed

1 file changed

+77
-0
lines changed
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
name: particle-studio
2+
on:
3+
workflow_dispatch:
4+
push:
5+
tags:
6+
- 'particle-studio-*'
7+
permissions:
8+
contents: write
9+
jobs:
10+
build:
11+
strategy:
12+
matrix:
13+
platform: [ubuntu-latest, macOS-latest, windows-latest]
14+
fail-fast: false
15+
runs-on: ${{ matrix.platform }}
16+
defaults:
17+
run:
18+
shell: bash
19+
env:
20+
LISP: sbcl-bin
21+
steps:
22+
- name: Restore cache
23+
id: cache-ql
24+
uses: actions/cache@v3
25+
with:
26+
path: |
27+
~/.roswell
28+
~/.cache/common-lisp
29+
~/AppData/Local/cache
30+
key: ${{ runner.os }}-ql
31+
- name: Install Lisp
32+
uses: 40ants/setup-lisp@v2
33+
- name: Install env
34+
if: steps.cache-ql.outputs.cache-hit != 'true'
35+
shell: lispsh -eo pipefail {0}
36+
run: |
37+
ros run -- --noinform \
38+
--eval '(ql-dist:install-dist "http://dist.shirakumo.org/shirakumo.txt" :prompt NIL)' \
39+
--non-interactive
40+
- uses: actions/checkout@v1
41+
- name: Build the library
42+
shell: lispsh -eo pipefail {0}
43+
run: |
44+
ros run -- --noinform --dynamic-space-size 4Gb \
45+
--eval "(push \"$GITHUB_WORKSPACE\" ql:*local-project-directories*)" \
46+
--eval '(ql:quickload :trial-particle-studio)' \
47+
--non-interactive
48+
- name: Build the binary
49+
shell: lispsh -eo pipefail {0}
50+
run: |
51+
ros run -- --noinform --dynamic-space-size 4Gb \
52+
--eval "(push \"$GITHUB_WORKSPACE\" ql:*local-project-directories*)" \
53+
--eval '(asdf:make :trial-particle-studio)' \
54+
--non-interactive
55+
- name: Make release ZIP
56+
if: runner.os != 'windows'
57+
run: |
58+
cd particle-studio/bin/ && zip -r ~/trial-particle-studio-${{ runner.os }}.zip *
59+
- name: Make release ZIP
60+
if: runner.os == 'windows'
61+
shell: powershell
62+
run: |
63+
cd particle-studio/bin/
64+
Compress-Archive -Path * -Destination $HOME/trial-particle-studio-${{ runner.os }}.zip
65+
- name: Upload artifact
66+
uses: actions/upload-artifact@v4
67+
with:
68+
name: trial-particle-studio-${{ runner.os }}
69+
path: ~/trial-particle-studio-${{ runner.os }}.zip
70+
- name: Create release
71+
id: create_release
72+
uses: ncipollo/release-action@v1
73+
continue-on-error: true
74+
with:
75+
allowUpdates: true
76+
name: Release ${{ github.ref_name }}
77+
artifacts: ~/trial-particle-studio-${{ runner.os }}.zip

0 commit comments

Comments
 (0)