Make binary available for installation #20
Workflow file for this run
This file contains hidden or 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
| name: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| test-macos: | |
| name: Test on macOS | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Check Swift version | |
| run: swift --version | |
| - name: Build | |
| run: swift build | |
| - name: Run tests | |
| run: swift test | |
| - name: Build CLI | |
| run: swift build -c release | |
| test-linux: | |
| name: Test on Linux | |
| runs-on: ubuntu-latest | |
| container: | |
| image: swift:5.9 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: | | |
| apt-get update | |
| apt-get install -y libsodium-dev | |
| - name: Check Swift version | |
| run: swift --version | |
| - name: Build | |
| run: swift build | |
| - name: Run tests | |
| run: swift test | |
| - name: Build CLI | |
| run: swift build -c release |