File tree Expand file tree Collapse file tree 4 files changed +47
-5
lines changed
Expand file tree Collapse file tree 4 files changed +47
-5
lines changed Original file line number Diff line number Diff line change 11name : Build header for liblinmem
22
33on :
4+ workflow_call :
45 workflow_dispatch :
56
67jobs :
Original file line number Diff line number Diff line change 1+ name : Build artifacts and attach to release
2+
3+ on :
4+ release :
5+ types : [created]
6+ workflow_dispatch :
7+
8+ jobs :
9+ header :
10+ uses : ./.github/workflows/header.yml
11+
12+ staticlibs :
13+ uses : ./.github/workflows/staticlib.yml
14+
15+ attach-artifacts :
16+ runs-on : ubuntu-latest
17+ needs :
18+ - header
19+ - staticlibs
20+
21+ steps :
22+ - name : Download Static Library Artifacts
23+ uses : actions/download-artifact@v4
24+ with :
25+ path : ./artifacts/staticlibs
26+
27+ - name : Download Header Artifact
28+ uses : actions/download-artifact@v4
29+ with :
30+ name : liblinmem.h
31+ path : ./artifacts
32+
33+ - name : List Artifacts
34+ run : ls -R ./artifacts
35+
36+ - name : Attach Artifacts to GitHub Release
37+ uses : softprops/action-gh-release@v2
38+ with :
39+ files : ./artifacts/**
Original file line number Diff line number Diff line change 1- name : Build staticlibs for liblinmem
1+ name : Build static libs for liblinmem
22
33on :
4+ workflow_call :
45 workflow_dispatch :
56
67jobs :
2324 rust_target : x86_64-unknown-linux-gnu
2425 - os : windows-latest
2526 rust_target : x86_64-pc-windows-gnu
27+ - os : ubuntu-24.04-arm
28+ rust_target : aarch64-unknown-linux-gnu
2629
2730 runs-on : ${{ matrix.os }}
2831
@@ -39,11 +42,10 @@ jobs:
3942 - name : Build Static Library
4043 run : |
4144 cargo build -vv --release --target ${{ matrix.rust_target }}
42- mkdir -p liblinmem/${{ matrix.rust_target }}
43- mv target/${{ matrix.rust_target }}/release/liblinmem.a liblinmem/${{ matrix.rust_target }}/
45+ mv target/${{ matrix.rust_target }}/release/liblinmem.a liblinmem-${{ matrix.rust_target }}.a
4446
4547 - name : Upload Artifact
4648 uses : actions/upload-artifact@v4
4749 with :
4850 name : liblinmem-${{ matrix.rust_target }}.a
49- path : liblinmem/ ${{ matrix.rust_target }}
51+ path : liblinmem- ${{ matrix.rust_target }}.a
Original file line number Diff line number Diff line change 11[package ]
22name = " linmem"
3- version = " 0.1.3 "
3+ version = " 0.1.4 "
44edition = " 2021"
55
66[profile .release ]
You can’t perform that action at this time.
0 commit comments