Skip to content

Commit

Permalink
GHA ci syntax fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cboulay committed Dec 7, 2024
1 parent 49fed01 commit 98ad592
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
workflow_dispatch:

env:
LSL_RELEASE_URL: "https://github.com/sccn/liblsl/releases/download/"
LSL_RELEASE_URL: "https://github.com/sccn/liblsl/releases/download/v1.16.2"
LSL_RELEASE: "1.16.2"

jobs:
Expand All @@ -32,22 +32,30 @@ jobs:
os: ["ubuntu-latest", "windows-latest", "macOS-latest"]

name: Run tests (${{ matrix.os }} Python ${{ matrix.python-version }})
runs-on: ${{ matrix.config.os }}
runs-on: ${{ matrix.os }}
steps:
- name: Download liblsl (Windows)
if: matrix.os == 'windows-latest'
run: |
curl -L https://github.com/sccn/liblsl/releases/download/v1.16.2/liblsl-1.16.2-Win_amd64.zip -o liblsl.zip
pwd
ls
dir
unzip -oj liblsl.zip bin/lsl* -d src/pylsl/lib/
- name: Install liblsl (MacOS)
if: matrix.os == 'macos-latest'
run: brew install labstreaminglayer/tap/lsl
- name: Install liblsl (Ubuntu)
if: startsWith(matrix.os, 'ubuntu-')
run: |
sudo apt install -y libpugixml-dev
curl -L ${LSL_RELEASE_URL}/v${LSL_RELEASE}/liblsl-${LSL_RELEASE}-$(lsb_release -sc)_amd64.deb -o liblsl.deb
curl -L ${LSL_RELEASE_URL}/liblsl-${LSL_RELEASE}-$(lsb_release -sc)_amd64.deb -o liblsl.deb
sudo apt install ./liblsl.deb
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
python-version: ${{ matrix.python-version }})
python-version: ${{ matrix.python-version }}
- name: Build
run: uv sync --all-extras
- name: Run tests
Expand Down

0 comments on commit 98ad592

Please sign in to comment.