-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
73 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,13 +12,32 @@ jobs: | |
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
swift: ["5.1", "latest"] | ||
swift: ["latest"] | ||
container: | ||
image: swift:${{ matrix.swift }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
uses: actions/checkout@v4 | ||
|
||
- name: Test | ||
run: swift test -c release --skip-update --parallel --enable-code-coverage | ||
- name: Build Release | ||
run: swift build -c release | ||
run: swift test -c release --enable-xctest --parallel --xunit-output .build/xUnit-output.xml | ||
|
||
- name: Upload artifacts | ||
if: always() | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: artifacts-linux-${{ matrix.swift }}-${{ github.run_id }} | ||
path: | | ||
.build/**/*.a | ||
.build/**/*.bundle | ||
.build/**/*.dSYM | ||
.build/**/*.gdb | ||
.build/**/*.json | ||
.build/**/*.txt | ||
.build/**/*.xctest | ||
.build/*.json | ||
.build/*.txt | ||
.build/*.xml | ||
.build/*.yaml | ||
if-no-files-found: warn | ||
include-hidden-files: true |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,38 +12,36 @@ jobs: | |
runs-on: macos-latest | ||
strategy: | ||
matrix: | ||
xcode: [13.4.1, 14.1] | ||
xcode: ["14.3.1", "15.4", "16.0"] | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
uses: actions/checkout@v4 | ||
|
||
- name: Select Xcode ${{ matrix.xcode }} | ||
run: sudo xcode-select -s '/Applications/Xcode_${{ matrix.xcode }}.app' | ||
|
||
- name: Test | ||
run: make test | ||
run: swift test -c release --parallel --xunit-output .build/xUnit-output.xml | ||
env: | ||
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer | ||
- name: Upload test artifacts | ||
if: failure() | ||
uses: actions/[email protected] | ||
|
||
- name: Upload artifacts | ||
if: always() | ||
uses: actions/[email protected] | ||
with: | ||
name: test-artifacts-${{ matrix.xcode }}-${{ github.run_id }} | ||
name: artifacts-macOS-${{ matrix.xcode }}-${{ github.run_id }} | ||
path: | | ||
.build/**/*.a | ||
.build/**/*.bundle | ||
.build/**/*.dSYM | ||
.build/**/*.gdb | ||
.build/**/*.json | ||
.build/**/*.txt | ||
.build/**/*.xctest | ||
- name: Build Release | ||
run: make buildRelease | ||
env: | ||
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer | ||
- name: Upload build artifacts | ||
if: failure() | ||
uses: actions/[email protected] | ||
with: | ||
name: build-artifacts-${{ matrix.xcode }}-${{ github.run_id }} | ||
path: | | ||
*.lcov | ||
.build/*.json | ||
.build/*.txt | ||
.build/*.xml | ||
.build/*.yaml | ||
.build/**/*.a | ||
.build/**/*.so | ||
.build/**/*.dylib | ||
.build/**/*.dSYM | ||
.build/**/*.json | ||
if-no-files-found: warn | ||
include-hidden-files: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,13 +11,35 @@ jobs: | |
windows-test-build-release: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: compnerd/gha-setup-swift@main | ||
- name: Setup | ||
uses: compnerd/[email protected] | ||
with: | ||
branch: swift-5.7-release | ||
tag: 5.7-RELEASE | ||
branch: swift-5.10-release | ||
tag: 5.10-RELEASE | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Test | ||
run: swift test -c release --parallel --xunit-output .build/xUnit-output.xml | ||
|
||
- name: Upload artifacts | ||
if: always() | ||
uses: actions/[email protected] | ||
with: | ||
name: artifacts-windows-${{ github.run_id }} | ||
path: | | ||
.build/**/*.a | ||
.build/**/*.bundle | ||
.build/**/*.dSYM | ||
.build/**/*.gdb | ||
.build/**/*.json | ||
.build/**/*.txt | ||
.build/**/*.xctest | ||
.build/*.json | ||
.build/*.txt | ||
.build/*.xml | ||
.build/*.yaml | ||
if-no-files-found: warn | ||
include-hidden-files: true | ||
|
||
- name: Build Release | ||
run: swift build -c release --verbose |