-
Notifications
You must be signed in to change notification settings - Fork 78
57 lines (52 loc) · 1.38 KB
/
aicirt.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
name: AICIrt
on:
push:
branches: [ "main" ]
tags:
- "v*.*.*"
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: rustup target add wasm32-wasi
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: Build aici_abi
run: cargo build --verbose --release
working-directory: aici_abi
- name: Build uppercase
run: cargo build --verbose --release
working-directory: uppercase
- name: Build pyctrl
run: cargo build --verbose --release
working-directory: pyctrl
- name: Build jsctrl
run: cargo build --verbose --release
working-directory: jsctrl
- name: Build declctrl
run: cargo build --verbose --release
working-directory: declctrl
- name: Build aicirt
run: cargo build --verbose --release
working-directory: aicirt
- name: Release script
run: ./scripts/release.sh --xz
- name: Artifact upload
uses: actions/upload-artifact@v4
with:
name: aicirt-xz
path: target/dist/*.tar.xz
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
body_path: target/dist/README.md
files: |
target/dist/*.tar.gz
target/dist/*.tar.xz