-
Notifications
You must be signed in to change notification settings - Fork 9
53 lines (49 loc) · 1.67 KB
/
release.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
name: Stable Release
permissions:
contents: write
on:
push:
tags:
- v[0-9]+.*
jobs:
upload-assets:
strategy:
matrix:
info:
- os: "macOS-latest"
target: "x86_64-apple-darwin"
- os: "macOS-latest"
target: "aarch64-apple-darwin"
- os: "windows-latest"
target: "x86_64-pc-windows-msvc"
- os: "ubuntu-latest"
target: "x86_64-unknown-linux-gnu"
runs-on: ${{ matrix.info.os }}
steps:
- name: Setup NodeJS toolchain
uses: actions/setup-node@v3
- name: Install TailwindCSS
run: npm install -D tailwindcss
- name: Install DaisyUI
run: npm install -D daisyui@latest
- name: Install TailwindCSS Typography
run: npm install -D @tailwindcss/typography
- name: Add WASM Support
run: rustup target add wasm32-unknown-unknown
- uses: actions/checkout@v3
- uses: taiki-e/install-action@just
- uses: jetli/[email protected]
# Compile WASM before compiling binary
- if: matrix.info.os == 'windows-latest'
run: just --shell pwsh.exe --shell-arg -c _wasm
- if: matrix.info.os != 'windows-latest'
run: just _wasm
- uses: taiki-e/upload-rust-binary-action@v1
with:
# (required) Comma-separated list of binary names (non-extension portion of filename) to build and upload.
# Note that glob pattern is not supported yet.
bin: artemis
target: ${{ matrix.info.target }}
archive: $bin-$tag-$target
# (required) GitHub token for uploading assets to GitHub Releases.
token: ${{ secrets.GITHUB_TOKEN }}