-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (37 loc) · 1.26 KB
/
libxp2p_ios.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
name: iOS XP2P CI
on:
push:
paths-ignore: # 有時候不想要改個文档也触发 github actions
- '**.md'
- 'LICENSE'
jobs:
build-and-deploy:
runs-on: macos-14
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: build libenet
if: startsWith(github.event.ref, 'refs/heads')
run: |
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
export GIT_BRANCH_IMAGE_VERSION=$VERSION
sh .github/script/build_enet_ios.sh Debug
env:
GIT_ACCESS_TOKEN: ${{ secrets.IOT_GITHUB_ACCESS_TOKEN }}
PROVISIONING_PASSWORD: ${{ secrets.GPG_DECRYPT_PASSPHRASE }}
- name: push libenet
if: startsWith(github.event.ref, 'refs/tags')
run: |
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
export GIT_BRANCH_IMAGE_VERSION=$VERSION
sh .github/script/build_enet_ios.sh Release
env:
GIT_ACCESS_TOKEN: ${{ secrets.IOT_GITHUB_ACCESS_TOKEN }}
PROVISIONING_PASSWORD: ${{ secrets.GPG_DECRYPT_PASSPHRASE }}
- name: Upload NETSDK Library
uses: actions/upload-artifact@v4
with:
name: libenet_ios.a
path: iot-p2p/build/ios/Release-iphoneos/libenet.a