Skip to content

Commit

Permalink
ci: setup build framework ci
Browse files Browse the repository at this point in the history
  • Loading branch information
wibus-wee committed Jul 16, 2024
1 parent 676498f commit 38c9630
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: MihomoKit CI

on:
push:
workflow_dispatch:

jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up golang environment
uses: actions/setup-go@v5
with:
go-version: 1.22

- name: Set up gomobile
run: |
go get golang.org/x/mobile/cmd/gomobile
gomobile init
- name: Build Mihomo.xcframework
run: |
go mod download
make
- name: Zip Mihomo.xcframework
run: |
zip -r Mihomo.xcframework.zip Mihomo.xcframework
- name: Upload to Artifact
uses: actions/upload-artifact@v4
with:
name: Mihomo.xcframework
path: Mihomo.xcframework.zip

0 comments on commit 38c9630

Please sign in to comment.