diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 374be6c..60a8ca4 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -1,18 +1,23 @@ +# 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: Ubuntu on: push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] + branches: ["**"] jobs: build: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v3 - - name: Build - run: swift build -v - - name: Run tests - run: swift test -v + - uses: compnerd/gha-setup-swift@main + with: + branch: swift-6.0-release + tag: 6.0-RELEASE + - uses: actions/checkout@v3 + - name: Build for release + run: swift build -v -c release + - name: Test + run: swift test -v