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
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
swift: ["5.1", "latest"]
|
swift: ["latest"]
|
||||||
container:
|
container:
|
||||||
image: swift:${{ matrix.swift }}
|
image: swift:${{ matrix.swift }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@master
|
uses: actions/checkout@v3
|
||||||
- name: "Update APT"
|
- name: "Update APT"
|
||||||
shell: bash
|
shell: bash
|
||||||
run: "apt update"
|
run: "apt update"
|
||||||
|
|
|
||||||
|
|
@ -8,13 +8,13 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
macos-test-build-release-xcode:
|
macos-test-build-release-xcode:
|
||||||
runs-on: macOS-11
|
runs-on: macOS-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
xcode: ["11.7", "12.5.1", "13.0"]
|
xcode: ["13.4.1", "14.2"]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@master
|
uses: actions/checkout@v3
|
||||||
- name: Select Xcode ${{ matrix.xcode }}
|
- name: Select Xcode ${{ matrix.xcode }}
|
||||||
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
|
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
|
||||||
- name: Test
|
- name: Test
|
||||||
|
|
@ -32,7 +32,7 @@ jobs:
|
||||||
- name: Generate coverage report
|
- 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
|
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
|
- name: Upload code coverage report
|
||||||
uses: codecov/codecov-action@v1.5.2
|
uses: codecov/codecov-action@v3.1.2
|
||||||
with:
|
with:
|
||||||
token: ${{secrets.CODECOV_TOKEN}}
|
token: ${{secrets.CODECOV_TOKEN}}
|
||||||
file: coverage.lcov
|
file: coverage.lcov
|
||||||
|
|
|
||||||
|
|
@ -10,8 +10,8 @@ jobs:
|
||||||
wasm-build:
|
wasm-build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@v3
|
||||||
- name: Build
|
- name: Build
|
||||||
uses: swiftwasm/swiftwasm-action@main
|
uses: swiftwasm/swiftwasm-action@v5.7
|
||||||
with:
|
with:
|
||||||
shell-action: swift build --triple wasm32-unknown-wasi
|
shell-action: swift build --triple wasm32-unknown-wasi
|
||||||
|
|
|
||||||
|
|
@ -9,30 +9,17 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
windows-test-build-release:
|
windows-test-build-release:
|
||||||
runs-on: windows-latest
|
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:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: compnerd/gha-setup-swift@main
|
||||||
- uses: seanmiddleditch/gha-setup-vsdevenv@master
|
with:
|
||||||
|
branch: swift-5.7-release
|
||||||
|
tag: 5.7-RELEASE
|
||||||
|
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- 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
|
- name: Test
|
||||||
run: swift test -v --skip-update --parallel --enable-test-discovery
|
run: swift test -v --skip-update --parallel --enable-test-discovery
|
||||||
|
|
||||||
- name: Build Release
|
- name: Build Release
|
||||||
run: swift build -c release
|
run: swift build -c release
|
||||||
|
|
@ -18,8 +18,8 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
- name: Generate documentation
|
- name: Generate Swift Doc Documentation
|
||||||
uses: SwiftDocOrg/swift-doc@master
|
uses: SwiftDocOrg/swift-doc@1.0.0-rc.1
|
||||||
with:
|
with:
|
||||||
inputs: "Sources/FirebladeECS"
|
inputs: "Sources/FirebladeECS"
|
||||||
output: "Documentation"
|
output: "Documentation"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue