Skip to content

Commit 8394615

Browse files
committed
initial github ci
1 parent 2d317b6 commit 8394615

File tree

2 files changed

+76
-0
lines changed

2 files changed

+76
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: VLCKit macOS ARM64
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
VLCKit_macOS_ARM64:
9+
if: github.event_name == 'push' || github.event.pull_request.head.repo.id != github.event.pull_request.base.repo.id
10+
runs-on: macos-14 # macOS ARM64 runner
11+
env:
12+
VLCKIT_TAG: 3.6.1b1
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- name: VLCKit macOS ARM64 build
18+
shell: bash
19+
run: |
20+
# Clone VLCKit repository
21+
git clone https://github.com/videolan/vlckit
22+
cd vlckit
23+
git checkout "tags/$VLCKIT_TAG"
24+
25+
# Build VLCKit for macOS ARM64
26+
./buildMobileVLCKit.sh -x -a aarch64
27+
28+
# Create output directory
29+
mkdir -p $GITHUB_WORKSPACE/build/macos-arm64
30+
31+
# Copy built framework
32+
cp -R build/VLCKit.xcframework $GITHUB_WORKSPACE/build/macos-arm64/
33+
34+
- name: Upload VLCKit macOS ARM64 build
35+
uses: actions/upload-artifact@v4
36+
with:
37+
name: vlckit-macos-arm64-build
38+
path: build/macos-arm64/
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: VLCKit macOS x64
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
VLCKit_macOS_x64:
9+
if: github.event_name == 'push' || github.event.pull_request.head.repo.id != github.event.pull_request.base.repo.id
10+
runs-on: macos-13 # macOS x64 runner
11+
env:
12+
VLCKIT_TAG: 3.6.1b1
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- name: VLCKit macOS x64 build
18+
shell: bash
19+
run: |
20+
# Clone VLCKit repository
21+
git clone https://github.com/videolan/vlckit
22+
cd vlckit
23+
git checkout "tags/$VLCKIT_TAG"
24+
25+
# Build VLCKit for macOS x64
26+
./buildMobileVLCKit.sh -x -a x86_64
27+
28+
# Create output directory
29+
mkdir -p $GITHUB_WORKSPACE/build/macos-x64
30+
31+
# Copy built framework
32+
cp -R build/VLCKit.xcframework $GITHUB_WORKSPACE/build/macos-x64/
33+
34+
- name: Upload VLCKit macOS x64 build
35+
uses: actions/upload-artifact@v4
36+
with:
37+
name: vlckit-macos-x64-build
38+
path: build/macos-x64/

0 commit comments

Comments
 (0)