fixes cross-compilation and CI

This commit is contained in:
Kebin Liu
2023-01-11 07:06:34 +08:00
committed by Max Lv
parent a902e20330
commit 315700b55b
12 changed files with 162 additions and 79 deletions
+21 -4
View File
@@ -8,7 +8,24 @@ jobs:
runs-on: macos-10.15
steps:
- uses: actions/checkout@v1
- name: Run unit test
run: |
set -o pipefail && xcodebuild test -workspace ShadowsocksX-NG.xcworkspace -scheme ShadowsocksX-NG|xcpretty
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
- name: Build
run: |
brew install automake
make debug
make debug-dmg
shasum -a 256 build/Debug/ShadowsocksX-NG.dmg > build/Debug/ShadowsocksX-NG.dmg.checksum
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: ShadowsocksX-NG
path: |
build/Debug/ShadowsocksX-NG.dmg
build/Debug/ShadowsocksX-NG.dmg.checksum