-
Notifications
You must be signed in to change notification settings - Fork 16
121 lines (114 loc) Β· 3.95 KB
/
build-release-binaries.yaml
File metadata and controls
121 lines (114 loc) Β· 3.95 KB
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
name: Build release binaries
on:
push:
tags:
- v*
jobs:
build-x86_64-apple-darwin:
permissions:
contents: write
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- run: rustup target add x86_64-apple-darwin
- run: cargo build --target x86_64-apple-darwin --release
- run: ./target/x86_64-apple-darwin/release/twips --help
- uses: actions/upload-artifact@v4
with:
name: twips.x86_64-apple-darwin
path: ./target/x86_64-apple-darwin/release/twips
- run: mv ./target/x86_64-apple-darwin/release/twips twips.${{ github.ref_name }}.x86_64-apple-darwin
- uses: softprops/action-gh-release@v2
with:
files: twips.${{ github.ref_name }}.x86_64-apple-darwin
build-aarch64-apple-darwin:
permissions:
contents: write
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- run: rustup toolchain list
- run: make build-rust
- run: ./target/release/twips --help
- uses: actions/upload-artifact@v4
with:
name: twips.aarch64-apple-darwin
path: ./target/release/twips
- run: mv ./target/release/twips twips.${{ github.ref_name }}.aarch64-apple-darwin
- uses: softprops/action-gh-release@v2
with:
files: twips.${{ github.ref_name }}.aarch64-apple-darwin
build-x86_64-pc-windows:
permissions:
contents: write
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- run: rustup toolchain list
- run: make build-rust
- run: ./target/release/twips.exe --help
- uses: actions/upload-artifact@v4
with:
name: twips.x86_64-pc-windows
path: ./target/release/twips.exe
- run: mv ./target/release/twips.exe twips.${{ github.ref_name }}.x86_64-pc-windows
- uses: softprops/action-gh-release@v2
with:
files: twips.${{ github.ref_name }}.x86_64-pc-windows
build-aarch64-pc-windows:
permissions:
contents: write
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- run: rustup toolchain list
- run: make build-rust
- run: ./target/release/twips.exe --help
- uses: actions/upload-artifact@v4
with:
name: twips.aarch64-pc-windows
path: ./target/release/twips.exe
- run: mv ./target/release/twips.exe twips.${{ github.ref_name }}.aarch64-pc-windows
- uses: softprops/action-gh-release@v2
with:
files: twips.${{ github.ref_name }}.aarch64-pc-windows
build-x86_64-unknown-linux-gnu:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- run: rustup toolchain list
- run: make build-rust
- run: ./target/release/twips --help
- uses: actions/upload-artifact@v4
with:
name: twips.x86_64-unknown-linux-gnu
path: ./target/release/twips
- run: mv ./target/release/twips twips.${{ github.ref_name }}.x86_64-unknown-linux-gnu
- uses: softprops/action-gh-release@v2
with:
files: twips.${{ github.ref_name }}.x86_64-unknown-linux-gnu
build-aarch64-unknown-linux-gnu:
permissions:
contents: write
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- run: rustup toolchain list
- run: make build-rust
- run: ./target/release/twips --help
- uses: actions/upload-artifact@v4
with:
name: twips.aarch64-unknown-linux-gnu
path: ./target/release/twips
- run: mv ./target/release/twips twips.${{ github.ref_name }}.aarch64-unknown-linux-gnu
- uses: softprops/action-gh-release@v2
with:
files: twips.${{ github.ref_name }}.aarch64-unknown-linux-gnu