Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
grdsdev committed Mar 27, 2024
1 parent 9f1e60e commit ba8cc44
Showing 1 changed file with 62 additions and 58 deletions.
120 changes: 62 additions & 58 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,76 +14,80 @@ concurrency:
cancel-in-progress: true

jobs:
library-darwin:
runs-on: macos-14
name: Test Library (Darwin)
steps:
- uses: actions/checkout@v3
- name: Select Xcode 15.2
run: sudo xcode-select -s /Applications/Xcode_15.2.app
- name: Run tests
run: make test-library
# library-darwin:
# runs-on: macos-14
# name: Test Library (Darwin)
# steps:
# - uses: actions/checkout@v3
# - name: Select Xcode 15.2
# run: sudo xcode-select -s /Applications/Xcode_15.2.app
# - name: Run tests
# run: make test-library

library-evolution:
name: Library (evolution, Darwin)
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- name: Select Xcode 15.2
run: sudo xcode-select -s /Applications/Xcode_15.2.app
- name: Build for library evolution
run: make build-for-library-evolution
# library-evolution:
# name: Library (evolution, Darwin)
# runs-on: macos-14
# steps:
# - uses: actions/checkout@v4
# - name: Select Xcode 15.2
# run: sudo xcode-select -s /Applications/Xcode_15.2.app
# - name: Build for library evolution
# run: make build-for-library-evolution

library-linux:
runs-on: ubuntu-latest
name: Test Library (Linux)
strategy:
matrix:
swift-version: ["5.9", "5.10"]
steps:
- uses: swift-actions/setup-swift@v2
with:
swift-version: "${{ matrix.swift-version }}"
- uses: actions/checkout@v3
- name: Run Tests
run: swift test
# library-linux:
# runs-on: ubuntu-latest
# name: Test Library (Linux)
# strategy:
# matrix:
# swift-version: ["5.9", "5.10"]
# steps:
# - uses: swift-actions/setup-swift@v2
# with:
# swift-version: "${{ matrix.swift-version }}"
# - uses: actions/checkout@v3
# - name: Run Tests
# run: swift test

library-windows:
runs-on: windows-latest
name: Test Library (Windows)
steps:
# We use BCNY's repo since they have newer builds of Swift
# which have fixed libcurl in Foundation.
- uses: compnerd/gha-setup-swift@main
with:
release-tag-name: "20231203.0"
github-repo: "thebrowsercompany/swift-build"
release-asset-name: installer-amd64.exe
github-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v3
- name: Run Tests
run: swift test
# library-windows:
# runs-on: windows-latest
# name: Test Library (Windows)
# steps:
# # We use BCNY's repo since they have newer builds of Swift
# # which have fixed libcurl in Foundation.
# - uses: compnerd/gha-setup-swift@main
# with:
# release-tag-name: "20231203.0"
# github-repo: "thebrowsercompany/swift-build"
# release-asset-name: installer-amd64.exe
# github-token: ${{ secrets.GITHUB_TOKEN }}
# - uses: actions/checkout@v3
# - name: Run Tests
# run: swift test

test-library:
runs-on: macos-14
name: Test Library
steps:
- uses: actions/checkout@v3
- uses: crazy-max/ghaction-setup-docker@v3
- run: brew install docker docker-compose lima
- run: |
brew install colima
colima version
colima start --cpu 3 --memory 6 --disk 100 --vm-type=qemu --mount-type=sshfs --dns=1.1.1.1
- uses: supabase/setup-cli@v1
- run: supabase start
- name: Select Xcode 15.2
run: sudo xcode-select -s /Applications/Xcode_15.2.app
- run: make test-library

examples:
runs-on: macos-14
name: Build Examples
steps:
- uses: actions/checkout@v3
- name: Select Xcode 15.2
run: sudo xcode-select -s /Applications/Xcode_15.2.app
- name: Prepare Examples Project
run: cp Examples/Examples/_Secrets.swift Examples/Examples/Secrets.swift
- name: Build examples
run: make build-examples
# examples:
# runs-on: macos-14
# name: Build Examples
# steps:
# - uses: actions/checkout@v3
# - name: Select Xcode 15.2
# run: sudo xcode-select -s /Applications/Xcode_15.2.app
# - name: Prepare Examples Project
# run: cp Examples/Examples/_Secrets.swift Examples/Examples/Secrets.swift
# - name: Build examples
# run: make build-examples

0 comments on commit ba8cc44

Please sign in to comment.