Skip to content

Commit

Permalink
Update swift_workflow.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Genaro-Chris authored Nov 4, 2023
1 parent 584e8c7 commit da4a80a
Showing 1 changed file with 16 additions and 22 deletions.
38 changes: 16 additions & 22 deletions .github/workflows/swift_workflow.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,29 @@
name: CI
# This workflow will build a Swift project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift

name: Swift

on:
push:
branches: "*"
branches: [ "main" ]
pull_request:
branches: "*"
branches: [ "main" ]

jobs:
build:
name: Swift ${{ matrix.swift }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: macos-latest
swift: "5.8"
- os: ubuntu-latest
swift: "5.8"
- os: macos-latest
swift: "5.9"
- os: ubuntu-latest
swift: "5.9"
os: [macos-13, ubuntu-latest]
swift: ["5.9", "5.8"]

steps:
- uses: swift-actions/setup-swift@v1
with:
swift-version: ${{ matrix.swift }}

- name: build
run: swift build

- name: build for release
run: swift build -c release
- uses: swift-actions/setup-swift@v1
with:
swift-version: ${{ matrix.swift }}
- uses: actions/checkout@v3
- name: Get swift version
run: swift --version
- name: Build
run: swift build -v

0 comments on commit da4a80a

Please sign in to comment.