Skip to content

Commit

Permalink
CI: only build Go sample on Linux, and Swift on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
nil4 committed Jan 7, 2025
1 parent 55332b0 commit e3ca1a8
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,22 +58,20 @@ jobs:
cd Samples/Beyond.NET.Sample.C
./build_${{ env.SCRIPT_SUFFIX }}
#- name: build Go sample
# run: |
# cd Samples/Beyond.NET.Sample.Go
# ./build_${{ env.SCRIPT_SUFFIX }}

- name: build Swift dependencies
- name: build Go sample (Linux)
if: "success() && matrix.env.OS == 'linux'"
run: |
cd Samples/Beyond.NET.Sample.Swift
./build_dependencies
cd Samples/Beyond.NET.Sample.Go
./build_${{ env.SCRIPT_SUFFIX }}
- name: run Swift tests (macOS)
if: "success() && matrix.env.OS == 'macOS'"
run: |
cd Samples/Beyond.NET.Sample.Swift
./build_dependencies
sudo xcode-select --switch /Applications/Xcode_16.0.app
cd Samples/Beyond.NET.Sample.Swift
xcodebuild -workspace BeyondNETSamplesSwift.xcworkspace -scheme BeyondNETSampleSwift test -destination "name=My Mac"
xcodebuild -workspace BeyondNETSamplesSwift.xcworkspace -scheme BeyondNETSampleSwift test -destination "platform=iOS Simulator,name=iPhone 16,OS=18.0"
Expand Down

0 comments on commit e3ca1a8

Please sign in to comment.