-
Notifications
You must be signed in to change notification settings - Fork 0
89 lines (67 loc) · 2.05 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: Build Artifacts
on:
workflow_dispatch:
push:
tags:
- "v*"
env:
CARGO_TERM_COLOR: always
jobs:
build-windows:
runs-on: windows-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Build
run: cargo build --release --bin aplang
- name: Upload build artifact
uses: actions/upload-artifact@v4.6.0
with:
name: aplang-windows-binary
path: target/release/aplang.exe
build-windows-portable:
runs-on: windows-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Build
run: |
cargo build --release --no-default-features --features portable --bin aplang
mv target/release/aplang.exe target/release/aplang-portable.exe
- name: Upload build artifact
uses: actions/upload-artifact@v4.6.0
with:
name: aplang-windows-portable-binary
path: target/release/aplang-portable.exe
build-macos:
runs-on: macos-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Build
run: |
cargo build --release --no-default-features --features portable --bin aplang
mv target/release/aplang target/release/aplang-portable
- name: Upload build artifact
uses: actions/upload-artifact@v4.6.0
with:
name: aplang-macos-binary
path: target/release/aplang-portable
build-macos-portable:
runs-on: macos-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Build
run: cargo build --release --no-default-features --features portable --bin aplang
- name: Upload build artifact
uses: actions/upload-artifact@v4.6.0
with:
name: aplang-macos-portable-binary
path: target/release/aplang
release:
name: Create GitHub Release
runs-on: ubuntu-latest
needs: [build-windows, build-windows-portable, build-macos, build-macos-portable]
steps:
- name: Download all artifacts