Skip to content

Commit

Permalink
Update CI (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
ctreffs authored Apr 26, 2023
1 parent 005dc14 commit 1627e4e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 30 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/ci-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,22 @@ on:

jobs:
macos-test-build-release-xcode:
runs-on: macOS-latest
runs-on: macos-latest
strategy:
matrix:
xcode: ["13.2.1"]
xcode: ["13.4.1", "14.2"]
steps:
- name: Checkout
uses: actions/checkout@master
uses: actions/checkout@v3.5.2

- name: Select Xcode ${{ matrix.xcode }}
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app

- name: Test
run: make test
env:
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer

- name: Upload test artifacts
if: failure()
uses: actions/upload-artifact@v2.2.3
Expand All @@ -30,10 +33,12 @@ jobs:
path: |
.build/**/*.json
.build/**/*.xctest
- name: Build Release
run: make build-release
env:
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer

- name: Upload build artifacts
if: failure()
uses: actions/upload-artifact@v2.2.3
Expand Down
40 changes: 13 additions & 27 deletions .github/workflows/ci-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,21 @@ on:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:

jobs:
windows-test-build-release:
runs-on: windows-latest
env:
SNAPSHOT: "https://download.swift.org/swift-5.6-release/windows10/swift-5.6-RELEASE/swift-5.6-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 --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.5.2

- name: Test
run: swift test -v --enable-test-discovery

- name: Build Release
run: swift build -c release

0 comments on commit 1627e4e

Please # to comment.