support for JSON encoding OCA state #454
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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: Swift | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
name: Swift ${{ matrix.swift }} on ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
swift: ["5.9"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: swift-actions/setup-swift@v1.25.0 | |
with: | |
swift-version: ${{ matrix.swift }} | |
- uses: actions/checkout@v4 | |
- name: Linux dependencies | |
if: runner.os == 'Linux' | |
run: sudo apt-get install liburing-dev libavahi-compat-libdnssd-dev libavahi-client-dev | |
- name: Build | |
run: swift build | |
- name: Run tests | |
run: swift test |