From 6fba9b9eff6d61e390a02a05d51961c8aabf1b9f Mon Sep 17 00:00:00 2001 From: "Sven A. Schmidt" Date: Sun, 10 Dec 2023 20:18:27 +0100 Subject: [PATCH] Update CI --- .github/workflows/ci.yml | 51 ++++++++++++++++++++++++++++------------ 1 file changed, 36 insertions(+), 15 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b214544..d71122f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,20 +4,41 @@ on: [push] jobs: - test-macos: - name: Test macOS - runs-on: self-hosted + macOS: + # https://github.com/actions/runner-images + runs-on: macos-13 + strategy: + matrix: + xcode: ['15.0', '14.3.1'] steps: - - uses: actions/checkout@v2 - # - name: test-macos-xcode - # run: make test-macos-xcode - - name: test-macos-spm - run: make test-macos-spm + - uses: actions/checkout@v3 + - run: git config --global user.email "me@example.com" + - run: git config --global user.name "Name" + - name: Get swift version + run: env DEVELOPER_DIR="/Applications/Xcode_${{ matrix.xcode }}.app" swift --version + - name: Test + run: env DEVELOPER_DIR="/Applications/Xcode_${{ matrix.xcode }}.app" swift test + - name: Build release + run: env DEVELOPER_DIR="/Applications/Xcode_${{ matrix.xcode }}.app" swift build -c release - # test-linux: - # name: Test Linux - # runs-on: ubuntu-latest - # steps: - # - uses: actions/checkout@v2 - # - name: test - # run: swift test --parallel + Linux: + # https://github.com/actions/runner-images + runs-on: ubuntu-latest + strategy: + matrix: + image: [ + 'swift:5.8', + 'swift:5.9' + ] + container: + image: ${{ matrix.image }} + steps: + - uses: actions/checkout@v3 + - run: git config --global user.email "me@example.com" + - run: git config --global user.name "Name" + - name: Get swift version + run: swift --version + - name: Test + run: swift test + - name: Build release + run: swift build -c release \ No newline at end of file