Skip to content

chore: update ci workflow #84

chore: update ci workflow

chore: update ci workflow #84

name: Linux build
on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-linux:
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
# swift: [ "5.10", "6.0" ]
runs-on: ${{ matrix.os }}
steps:
- uses: swift-actions/setup-swift@v2
if: ${{ false }}
with:
swift-version: ${{ matrix.swift }}
- uses: actions/checkout@v4
- name: Ubuntu deps
if: ${{ runner.os == 'Linux' }}
run: |
sudo apt-get install -y libjemalloc-dev
- name: Swift version
run: swift --version
- name: Build
run: swift build
- name: Run tests
run: |
[ -d Tests ] && swift test --parallel