Skip to content

Commit decb28c

Browse files
author
Matéo Fernandez
committed
ci: add rust_release workflow + workflow_dispatch trigger
1 parent 0a2eada commit decb28c

File tree

3 files changed

+34
-2
lines changed

3 files changed

+34
-2
lines changed

.github/workflows/rust_build_test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
name: Rust - Build & Test
22

33
on:
4-
push:
4+
workflow_dispatch:
55
pull_request:
6+
push:
67

78
env:
89
CARGO_TERM_COLOR: always

.github/workflows/rust_lint.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
name: Rust - Linting
22

33
on:
4-
push:
4+
workflow_dispatch:
55
pull_request:
6+
push:
67

78
env:
89
CARGO_TERM_COLOR: always

.github/workflows/rust_release.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Rust - Release
2+
3+
permissions:
4+
contents: write
5+
6+
on:
7+
push:
8+
tags:
9+
- v[0-9]+.*
10+
11+
jobs:
12+
upload-assets:
13+
strategy:
14+
matrix:
15+
include:
16+
# open an issue if you need more targets
17+
- target: x86_64-unknown-linux-gnu
18+
os: ubuntu-latest
19+
runs-on: ${{ matrix.os }}
20+
steps:
21+
- uses: actions/checkout@v4
22+
23+
- uses: Swatinem/rust-cache@v2
24+
25+
- uses: taiki-e/upload-rust-binary-action@v1
26+
with:
27+
bin: excel_gen
28+
target: ${{ matrix.target }}
29+
archive: $bin-$tag-$target
30+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)