From 2131d30ecd36c28559aadef1b416403b58a5d3f6 Mon Sep 17 00:00:00 2001 From: Alsey Coleman Miller Date: Thu, 17 Aug 2023 22:51:17 -0400 Subject: [PATCH] Add GitHub CI --- .github/workflows/swift.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/swift.yml diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml new file mode 100644 index 0000000..685a1ab --- /dev/null +++ b/.github/workflows/swift.yml @@ -0,0 +1,25 @@ +name: Swift + +on: [push] + +jobs: + build: + name: Build + strategy: + matrix: + swift: [5.7.3, 5.8.1] + os: [ubuntu-20.04, macos-latest] + runs-on: ${{ matrix.os }} + steps: + - name: Install Swift + uses: slashmo/install-swift@v0.3.0 + with: + version: ${{ matrix.swift }} + - name: Checkout + uses: actions/checkout@v2 + - name: Swift Version + run: swift --version + - name: Build (Debug) + run: swift build -c debug + - name: Build (Release) + run: swift build -c release