Skip to content

Commit 910df27

Browse files
committed
chore: initial commit
0 parents  commit 910df27

12 files changed

Lines changed: 10581 additions & 0 deletions

File tree

‎.github/workflows/dist.yml‎

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: Build Dist
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
tags:
7+
- 'v*'
8+
9+
permissions:
10+
contents: write
11+
12+
jobs:
13+
dist:
14+
runs-on: macos-latest
15+
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
20+
- name: Install Rust targets
21+
run: |
22+
rustup target add \
23+
aarch64-apple-ios \
24+
aarch64-apple-ios-sim \
25+
aarch64-apple-darwin
26+
27+
- name: Cache cargo
28+
uses: actions/cache@v4
29+
with:
30+
path: |
31+
~/.cargo/registry
32+
~/.cargo/git
33+
target
34+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
35+
restore-keys: |
36+
${{ runner.os }}-cargo-
37+
38+
- name: Build distribution artifacts
39+
run: bash ./generate-dist.sh
40+
41+
- name: Package ZIP files
42+
run: |
43+
rm -rf release
44+
mkdir -p release
45+
46+
ditto -c -k --sequesterRsrc --keepParent \
47+
dist \
48+
release/embedded-ffi-dist.zip
49+
50+
- name: Upload workflow artifacts
51+
uses: actions/upload-artifact@v4
52+
with:
53+
name: embedded-ffi-dist
54+
path: release/embedded-ffi-dist.zip
55+
56+
- name: Create GitHub release
57+
if: startsWith(github.ref, 'refs/tags/')
58+
env:
59+
GH_TOKEN: ${{ github.token }}
60+
run: |
61+
gh release create "${GITHUB_REF_NAME}" \
62+
release/embedded-ffi-dist.zip \
63+
--generate-notes

‎.gitignore‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
target
2+
dist

0 commit comments

Comments
 (0)