forked from jkcoxson/minimuxer
-
Notifications
You must be signed in to change notification settings - Fork 13
50 lines (41 loc) · 1.18 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Build minimuxer
on: [push]
jobs:
build:
name: Build minimuxer
if: startsWith(github.event.head_commit.message, '[build]')
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
runs-on: macos-14
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
- name: Install rust targets for iOS
run: rustup target add aarch64-apple-ios aarch64-apple-ios-sim x86_64-apple-ios
- name: Cache rust
uses: Swatinem/rust-cache@v2
- name: Setup Xcode
uses: maxim-lobanov/[email protected]
with:
xcode-version: 14.2
- name: Build
run: make zip
- name: Upload to release
uses: IsaacShelton/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
release: "Build"
tag: "build"
files: |
minimuxer.xcframework.zip
generated.zip
target/libminimuxer-ios.a
target/libminimuxer-sim.a
body: |
Commit: https://github.com/${{ github.repository }}/commit/${{ github.sha }}