Skip to content

Commit 09fa3e9

Browse files
committed
Added Build and Publish Release action
1 parent ff4295b commit 09fa3e9

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed

.github/workflows/release.yaml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Build and Publish Release
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
upload-assets:
9+
strategy:
10+
matrix:
11+
include:
12+
- target: x86_64-unknown-linux-gnu
13+
arch: x86_64
14+
os: ubuntu-latest
15+
- target: aarch64-unknown-linux-gnu
16+
arch: aarch64
17+
os: ubuntu-latest
18+
- target: i686-unknown-linux-gnu
19+
arch: i686
20+
os: ubuntu-latest
21+
- target: arm-unknown-linux-gnueabi
22+
arch: arm
23+
os: ubuntu-latest
24+
- target: arm-unknown-linux-gnueabihf
25+
arch: armhf
26+
os: ubuntu-latest
27+
- target: armv7-unknown-linux-gnueabihf
28+
arch: armv7
29+
os: ubuntu-latest
30+
31+
- target: x86_64-unknown-linux-musl
32+
arch: x86_64.musl
33+
os: ubuntu-latest
34+
- target: aarch64-unknown-linux-musl
35+
arch: aarch64.musl
36+
os: ubuntu-latest
37+
- target: i686-unknown-linux-musl
38+
arch: i686.musl
39+
os: ubuntu-latest
40+
- target: arm-unknown-linux-musleabi
41+
arch: arm.musl
42+
os: ubuntu-latest
43+
- target: arm-unknown-linux-musleabihf
44+
arch: armhf.musl
45+
os: ubuntu-latest
46+
- target: armv7-unknown-linux-musleabihf
47+
arch: armv7.musl
48+
os: ubuntu-latest
49+
50+
runs-on: ${{ matrix.os }}
51+
steps:
52+
- uses: actions/checkout@v4
53+
- uses: taiki-e/upload-rust-binary-action@v1
54+
with:
55+
bin: lpm
56+
target: ${{ matrix.target }}
57+
archive: "$bin-${{ matrix.arch }}"
58+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)