Skip to content

Update main.yml

Update main.yml #44

Workflow file for this run

name: Main
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
main:
runs-on: macos-latest
steps:
- name: Select Xcode version
run: sudo xcode-select -s '/Applications/Xcode_16.app/Contents/Developer'
- uses: swift-actions/setup-swift@v2
with:
swift-version: "5.9.0"
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: .build
key: ${{ runner.os }}-DiscreteSlider-${{ hashFiles('**/Package.resolved') }}
restore-keys: ${{ runner.os }}-DiscreteSlider
- name: Build
run: swift build