Skip to content

Commit

Permalink
add GitHub runner workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lhoward committed Nov 24, 2024
1 parent 1319e3a commit 696802b
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: build

on:
push:
pull_request:
workflow_dispatch:

jobs:
darwin:
runs-on: macos-15
steps:
- name: Checkout
uses: actions/checkout@v4
- name: 🔍 Xcode Select
run: |
XCODE_PATH=`mdfind "kMDItemCFBundleIdentifier == 'com.apple.dt.Xcode' && kMDItemVersion = '16.*'" -onlyin /Applications | head -1`
echo "DEVELOPER_DIR=$XCODE_PATH/Contents/Developer" >> $GITHUB_ENV
- name: Version
run: swift --version
- name: Build
run: swift build
- name: Test
run: swift test
timeout-minutes: 1

linux:
runs-on: ubuntu-24.04
container: swift:6.0
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Packages
run: |
apt-get update
- name: Version
run: swift --version
- name: Build
run: swift build --build-tests
- name: Test
run: swift test --skip-build

0 comments on commit 696802b

Please sign in to comment.