Skip to content

Commit baaf4f7

Browse files
committed
Add Github Actions
1 parent dd01923 commit baaf4f7

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/build.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Build rsdkv6-extract
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
matrix:
13+
include:
14+
- os: ubuntu-latest
15+
target: x86_64-unknown-linux-gnu
16+
artifact_name: rsdkv6-extract
17+
- os: windows-latest
18+
target: x86_64-pc-windows-msvc
19+
artifact_name: rsdkv6-extract.exe
20+
21+
steps:
22+
- name: Checkout repository
23+
uses: actions/checkout@v5
24+
25+
- name: Build
26+
run: |
27+
cargo build --release --target ${{ matrix.target }}
28+
29+
- name: Move artifacts
30+
run: |
31+
mkdir artifacts
32+
mv target/${{ matrix.target }}/release/${{ matrix.artifact_name }} artifacts
33+
mv filelist.txt artifacts
34+
mv packnames.txt artifacts
35+
36+
- name: Upload artifacts
37+
uses: actions/upload-artifact@v4
38+
with:
39+
name: rsdkv6-extract-${{ matrix.target }}
40+
path: artifacts

0 commit comments

Comments
 (0)