Skip to content

Commit

Permalink
Replace Travis w/ GH Actions
Browse files Browse the repository at this point in the history
...
  • Loading branch information
helje5 committed Sep 8, 2024
1 parent 49749ba commit 76b128f
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 54 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Build and Test

on:
push:
pull_request:
schedule:
- cron: "0 9 * * 5"

jobs:
linux:
runs-on: ubuntu-latest
if: github.ref != 'refs/heads/main'
strategy:
fail-fast: false
matrix:
image:
- swift:5.5.3-xenial
- swift:5.6.1-bionic
- swift:5.7.2-focal
- swift:5.8-jammy
container: ${{ matrix.image }}
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Build Swift Debug Package
run: swift build -c debug
- name: Build Swift Release Package
run: swift build -c release
nextstep:
runs-on: macos-latest
if: github.ref != 'refs/heads/main'
steps:
- name: Select latest available Xcode
uses: maxim-lobanov/[email protected]
with:
xcode-version: latest
- name: Checkout Repository
uses: actions/checkout@v4
- name: Build Swift Debug Package
run: swift build -c debug
- name: Build Swift Release Package
run: swift build -c release
22 changes: 0 additions & 22 deletions .travis.d/before-install.sh

This file was deleted.

32 changes: 0 additions & 32 deletions .travis.d/install.sh

This file was deleted.

0 comments on commit 76b128f

Please sign in to comment.