Skip to content

Commit de81704

Browse files
committed
release 0.1.45
1 parent a904cbe commit de81704

File tree

4 files changed

+47
-5
lines changed

4 files changed

+47
-5
lines changed

.github/workflows/header.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Build header for liblinmem
22

33
on:
4+
workflow_call:
45
workflow_dispatch:
56

67
jobs:

.github/workflows/release.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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/**

.github/workflows/staticlib.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
name: Build staticlibs for liblinmem
1+
name: Build static libs for liblinmem
22

33
on:
4+
workflow_call:
45
workflow_dispatch:
56

67
jobs:
@@ -23,6 +24,8 @@ jobs:
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

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "linmem"
3-
version = "0.1.3"
3+
version = "0.1.4"
44
edition = "2021"
55

66
[profile.release]

0 commit comments

Comments
 (0)