Skip to content

Commit b4ad862

Browse files
committed
ci: add release workflow
1 parent c50cc77 commit b4ad862

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/release.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*.*.*'
7+
8+
env:
9+
GH_TOKEN: ${{ github.token }}
10+
11+
jobs:
12+
release:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v5
16+
- uses: dtolnay/rust-toolchain@stable
17+
- run: cargo xtask build --release --target aarch64
18+
- run: cargo xtask build --release --target riscv64
19+
- run: cargo xtask build --release --target x86_64
20+
- run: cargo xtask build --release --target x86_64-fc --features fc
21+
- run: cargo xtask build --release --target x86_64-uefi
22+
- uses: dtolnay/rust-toolchain@nightly
23+
with:
24+
components: rust-src
25+
- run: cargo xtask build --release --target aarch64_be
26+
- run: gh release create ${GITHUB_REF#refs/tags/} --draft --title ${GITHUB_REF#refs/tags/v} target/release/hermit-loader-*

0 commit comments

Comments
 (0)