Support split sources #49
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: [pull_request, push] | |
jobs: | |
build: | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: gradle/wrapper-validation-action@v2 | |
- uses: microsoft/[email protected] | |
with: | |
msbuild-architecture: x64 | |
- uses: compnerd/gha-setup-swift@main | |
with: | |
github-repo: thebrowsercompany/swift-build | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
release-tag-name: 20240422.2 | |
release-asset-name: installer-amd64.exe | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '21' | |
- run: dotnet tool install --global wix --version 5.0.0 | |
- run: ./gradlew :windows:copyJniHeaders | |
- run: ./gradlew build | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: Artifacts | |
path: build/libs/ | |
test: | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: microsoft/[email protected] | |
with: | |
msbuild-architecture: x64 | |
- uses: compnerd/gha-setup-swift@main | |
with: | |
github-repo: thebrowsercompany/swift-build | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
release-tag-name: 20240422.2 | |
release-asset-name: installer-amd64.exe | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '21' | |
- run: ./gradlew :windows:copyJniHeaders | |
- name: Swift build | |
working-directory: ./windows | |
run: swift build | |
- name: Swift test | |
working-directory: ./windows | |
run: swift test --disable-xctest | |
format: | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: microsoft/[email protected] | |
with: | |
msbuild-architecture: x64 | |
- uses: compnerd/gha-setup-swift@main | |
with: | |
github-repo: thebrowsercompany/swift-build | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
release-tag-name: 20240422.2 | |
release-asset-name: installer-amd64.exe | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '21' | |
- run: ./gradlew :windows:copyJniHeaders | |
- name: Swift format | |
working-directory: ./windows | |
run: swift run swift-format format -r -p Sources/ Tests/ | |
- name: Swift lint | |
working-directory: ./windows | |
run: swift run swift-format lint -r -p Sources/ Tests/ |