Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ctreffs committed Oct 21, 2024
1 parent 9fc3975 commit 9dd85f6
Show file tree
Hide file tree
Showing 4 changed files with 73 additions and 83 deletions.
29 changes: 24 additions & 5 deletions .github/workflows/ci-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
49 changes: 0 additions & 49 deletions .github/workflows/ci-macos-11.yml

This file was deleted.

44 changes: 21 additions & 23 deletions .github/workflows/ci-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

34 changes: 28 additions & 6 deletions .github/workflows/ci-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9dd85f6

Please sign in to comment.