Update CI (#49)
* Update ci-windows.yml * Update ci-macos.yml * Update ci-wasm.yml * Update ci-macos.yml * Update ci-linux.yml * Update documentation.yml
This commit is contained in:
parent
6f1ddd2bc4
commit
7c60425de0
|
|
@ -11,12 +11,12 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
swift: ["5.1", "latest"]
|
||||
swift: ["latest"]
|
||||
container:
|
||||
image: swift:${{ matrix.swift }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@master
|
||||
uses: actions/checkout@v3
|
||||
- name: "Update APT"
|
||||
shell: bash
|
||||
run: "apt update"
|
||||
|
|
|
|||
|
|
@ -8,13 +8,13 @@ on:
|
|||
|
||||
jobs:
|
||||
macos-test-build-release-xcode:
|
||||
runs-on: macOS-11
|
||||
runs-on: macOS-latest
|
||||
strategy:
|
||||
matrix:
|
||||
xcode: ["11.7", "12.5.1", "13.0"]
|
||||
xcode: ["13.4.1", "14.2"]
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@master
|
||||
uses: actions/checkout@v3
|
||||
- name: Select Xcode ${{ matrix.xcode }}
|
||||
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
|
||||
- name: Test
|
||||
|
|
@ -32,7 +32,7 @@ jobs:
|
|||
- name: Generate coverage report
|
||||
run: xcrun llvm-cov export -format="lcov" .build/debug/*PackageTests.xctest/Contents/MacOS/*PackageTests -instr-profile .build/debug/codecov/default.profdata > coverage.lcov
|
||||
- name: Upload code coverage report
|
||||
uses: codecov/codecov-action@v1.5.2
|
||||
uses: codecov/codecov-action@v3.1.2
|
||||
with:
|
||||
token: ${{secrets.CODECOV_TOKEN}}
|
||||
file: coverage.lcov
|
||||
|
|
|
|||
|
|
@ -10,8 +10,8 @@ jobs:
|
|||
wasm-build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- uses: actions/checkout@v3
|
||||
- name: Build
|
||||
uses: swiftwasm/swiftwasm-action@main
|
||||
uses: swiftwasm/swiftwasm-action@v5.7
|
||||
with:
|
||||
shell-action: swift build --triple wasm32-unknown-wasi
|
||||
|
|
|
|||
|
|
@ -9,30 +9,17 @@ on:
|
|||
jobs:
|
||||
windows-test-build-release:
|
||||
runs-on: windows-latest
|
||||
env:
|
||||
SNAPSHOT: "https://swift.org/builds/swift-5.4.1-release/windows10/swift-5.4.1-RELEASE/swift-5.4.1-RELEASE-windows10.exe"
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- uses: seanmiddleditch/gha-setup-vsdevenv@master
|
||||
|
||||
- name: Install Swift
|
||||
run: |
|
||||
Install-Binary -Url "${env:SNAPSHOT}" -Name "installer.exe" -ArgumentList ("-q")
|
||||
- name: Set Environment Variables
|
||||
run: |
|
||||
echo "SDKROOT=C:\Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
|
||||
echo "DEVELOPER_DIR=C:\Library\Developer" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
|
||||
- name: Adjust Paths
|
||||
run: |
|
||||
echo "C:\Library\Swift-development\bin;C:\Library\icu-67\usr\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
|
||||
echo "C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
|
||||
- name: Install Supporting Files
|
||||
run: |
|
||||
Copy-Item "$env:SDKROOT\usr\share\ucrt.modulemap" -destination "$env:UniversalCRTSdkDir\Include\$env:UCRTVersion\ucrt\module.modulemap"
|
||||
Copy-Item "$env:SDKROOT\usr\share\visualc.modulemap" -destination "$env:VCToolsInstallDir\include\module.modulemap"
|
||||
Copy-Item "$env:SDKROOT\usr\share\visualc.apinotes" -destination "$env:VCToolsInstallDir\include\visualc.apinotes"
|
||||
Copy-Item "$env:SDKROOT\usr\share\winsdk.modulemap" -destination "$env:UniversalCRTSdkDir\Include\$env:UCRTVersion\um\module.modulemap"
|
||||
- name: Test
|
||||
run: swift test -v --skip-update --parallel --enable-test-discovery
|
||||
- name: Build Release
|
||||
run: swift build -c release
|
||||
- uses: compnerd/gha-setup-swift@main
|
||||
with:
|
||||
branch: swift-5.7-release
|
||||
tag: 5.7-RELEASE
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Test
|
||||
run: swift test -v --skip-update --parallel --enable-test-discovery
|
||||
|
||||
- name: Build Release
|
||||
run: swift build -c release
|
||||
|
|
|
|||
|
|
@ -18,8 +18,8 @@ jobs:
|
|||
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- name: Generate documentation
|
||||
uses: SwiftDocOrg/swift-doc@master
|
||||
- name: Generate Swift Doc Documentation
|
||||
uses: SwiftDocOrg/swift-doc@1.0.0-rc.1
|
||||
with:
|
||||
inputs: "Sources/FirebladeECS"
|
||||
output: "Documentation"
|
||||
|
|
|
|||
Loading…
Reference in New Issue