Maintenance (#83)
* Update JamesIves/github-pages-deploy-action action to v4.6.9 * Update codecov/codecov-action action to v5 * Update dependency nicklockwood/SwiftFormat to v0.55.0 * Migrate codecov * Update macOS matrix * Update macOS job strategy matrix * Rename jobs --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This commit is contained in:
parent
2403d96e90
commit
bcee9db3de
|
|
@ -7,7 +7,7 @@ on:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
linux-test-build-release:
|
linux:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
|
|
||||||
|
|
@ -9,32 +9,34 @@ on:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
||||||
CODECOV_XCODE_VERSION: "15.4" # Xcode version used to generate code coverage
|
CODECOV_XCODE_VERSION: "16.0" # Xcode version used to generate code coverage
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
macos-test-build-release-xcode:
|
macos:
|
||||||
runs-on: macOS-latest
|
runs-on: ${{ matrix.config.os }}
|
||||||
strategy:
|
strategy:
|
||||||
|
fail-fast: true
|
||||||
matrix:
|
matrix:
|
||||||
xcode: ["14.3.1", "15.4", "16.0"]
|
config:
|
||||||
|
- { os: "macos-14", xcode: "15.4" }
|
||||||
|
- { os: "macos-15", xcode: "16.0" }
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Select Xcode ${{ matrix.xcode }}
|
- name: Select Xcode ${{ matrix.config.xcode }}
|
||||||
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
|
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.config.xcode }}.app
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: swift test -c release --parallel --xunit-output .build/xUnit-output.xml --enable-code-coverage
|
run: swift test -c release --parallel --xunit-output .build/xUnit-output.xml --enable-code-coverage
|
||||||
env:
|
env:
|
||||||
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
|
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.config.xcode }}.app/Contents/Developer
|
||||||
|
|
||||||
- name: Upload test artifacts
|
- name: Upload test artifacts
|
||||||
if: failure()
|
if: failure()
|
||||||
uses: actions/upload-artifact@v4.4.3
|
uses: actions/upload-artifact@v4.4.3
|
||||||
with:
|
with:
|
||||||
name: test-artifacts-${{ matrix.xcode }}-${{ github.run_id }}
|
name: test-artifacts-${{ matrix.config.xcode }}-${{ github.run_id }}
|
||||||
path: |
|
path: |
|
||||||
.build/*.yaml
|
.build/*.yaml
|
||||||
.build/*.xml
|
.build/*.xml
|
||||||
|
|
@ -48,13 +50,13 @@ jobs:
|
||||||
|
|
||||||
# Only run coverage steps if the CODECOV_TOKEN is available and the matrix.xcode matches CODECOV_XCODE_VERSION
|
# Only run coverage steps if the CODECOV_TOKEN is available and the matrix.xcode matches CODECOV_XCODE_VERSION
|
||||||
- name: Generate coverage report
|
- name: Generate coverage report
|
||||||
if: env.CODECOV_TOKEN != '' && matrix.xcode == env.CODECOV_XCODE_VERSION
|
if: env.CODECOV_TOKEN != '' && matrix.config.xcode == env.CODECOV_XCODE_VERSION
|
||||||
run: xcrun llvm-cov export -format="lcov" .build/**/*PackageTests.xctest/Contents/MacOS/*PackageTests -instr-profile .build/**/codecov/default.profdata > coverage.lcov
|
run: xcrun llvm-cov export -format="lcov" .build/**/*PackageTests.xctest/Contents/MacOS/*PackageTests -instr-profile .build/**/codecov/default.profdata > coverage.lcov
|
||||||
|
|
||||||
- name: Upload code coverage report
|
- name: Upload code coverage report
|
||||||
if: env.CODECOV_TOKEN != '' && matrix.xcode == env.CODECOV_XCODE_VERSION
|
if: env.CODECOV_TOKEN != '' && matrix.config.xcode == env.CODECOV_XCODE_VERSION
|
||||||
uses: codecov/codecov-action@v4.6.0
|
uses: codecov/codecov-action@v5.0.2
|
||||||
with:
|
with:
|
||||||
token: ${{ env.CODECOV_TOKEN }}
|
token: ${{ env.CODECOV_TOKEN }}
|
||||||
file: coverage.lcov
|
files: coverage.lcov
|
||||||
fail_ci_if_error: true
|
fail_ci_if_error: true
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ on:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
wasm-build:
|
wasm:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ on:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
windows-test-build-release:
|
windows:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Setup
|
- name: Setup
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ concurrency:
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
documentation:
|
||||||
runs-on: macos-14
|
runs-on: macos-14
|
||||||
steps:
|
steps:
|
||||||
- name: Select Xcode 16.0
|
- name: Select Xcode 16.0
|
||||||
|
|
@ -69,7 +69,7 @@ jobs:
|
||||||
run: 'sudo chown -R $USER docs'
|
run: 'sudo chown -R $USER docs'
|
||||||
|
|
||||||
- name: Publish documentation to GitHub Pages
|
- name: Publish documentation to GitHub Pages
|
||||||
uses: JamesIves/github-pages-deploy-action@v4.6.8
|
uses: JamesIves/github-pages-deploy-action@v4.6.9
|
||||||
with:
|
with:
|
||||||
branch: gh-pages
|
branch: gh-pages
|
||||||
folder: docs
|
folder: docs
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue