Improve scripts & CI #181
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: Validate Swift | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
concurrency: | |
# When running on main, use the sha to allow all runs of this workflow to run concurrently. | |
# Otherwise only allow a single run of this workflow on each branch, automatically cancelling older runs. | |
group: ${{ github.ref == 'refs/heads/main' && format('swift-main-{0}', github.sha) || format('swift-{0}', github.ref) }} | |
cancel-in-progress: true | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Swift | |
uses: slashmo/[email protected] | |
with: | |
version: 5.7 | |
- name: Build for Swift | |
run: swift build |