Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI

Check warning on line 1 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

excessive-permissions

ci.yaml:1: overly broad permissions: default permissions used due to no permissions: block

Check warning on line 1 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

excessive-permissions

ci.yaml:1: overly broad permissions: default permissions used due to no permissions: block

on:
push:
Expand All @@ -7,18 +7,18 @@
branches: [ main ]

jobs:
build-linux:

Check warning on line 10 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

excessive-permissions

ci.yaml:10: overly broad permissions: default permissions used due to no permissions: block

Check warning on line 10 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

excessive-permissions

ci.yaml:10: overly broad permissions: default permissions used due to no permissions: block
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

Check failure on line 13 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 13 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

ci.yaml:13: unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 13 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 13 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

ci.yaml:13: unpinned action reference: action is not pinned to a hash (required by blanket policy)
- run: gcc -v
- run: make

build-linux-meson:

Check warning on line 17 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

excessive-permissions

ci.yaml:17: overly broad permissions: default permissions used due to no permissions: block

Check warning on line 17 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

excessive-permissions

ci.yaml:17: overly broad permissions: default permissions used due to no permissions: block
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

Check failure on line 20 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 20 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

ci.yaml:20: unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 20 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 20 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

ci.yaml:20: unpinned action reference: action is not pinned to a hash (required by blanket policy)
- uses: actions/setup-python@v5

Check failure on line 21 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 21 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

ci.yaml:21: unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 21 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 21 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

ci.yaml:21: unpinned action reference: action is not pinned to a hash (required by blanket policy)
with:
python-version: '3.10'
cache: 'pip'
Expand All @@ -29,11 +29,11 @@
CC: gcc
- run: meson compile -C builddir/

build-macos-meson:

Check warning on line 32 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

excessive-permissions

ci.yaml:32: overly broad permissions: default permissions used due to no permissions: block

Check warning on line 32 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

excessive-permissions

ci.yaml:32: overly broad permissions: default permissions used due to no permissions: block
runs-on: macos-latest
steps:
- uses: actions/checkout@v4

Check failure on line 35 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 35 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

ci.yaml:35: unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 35 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 35 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

ci.yaml:35: unpinned action reference: action is not pinned to a hash (required by blanket policy)
- uses: actions/setup-python@v5

Check failure on line 36 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 36 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

ci.yaml:36: unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 36 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 36 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

ci.yaml:36: unpinned action reference: action is not pinned to a hash (required by blanket policy)
with:
python-version: '3.10'
cache: 'pip'
Expand All @@ -44,33 +44,33 @@
CC: clang
- run: meson compile -C builddir/

build-msvc-meson:

Check warning on line 47 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

excessive-permissions

ci.yaml:47: overly broad permissions: default permissions used due to no permissions: block

Check warning on line 47 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

excessive-permissions

ci.yaml:47: overly broad permissions: default permissions used due to no permissions: block
runs-on: windows-latest
steps:
- uses: actions/checkout@v4

Check failure on line 50 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 50 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

ci.yaml:50: unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 50 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 50 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

ci.yaml:50: unpinned action reference: action is not pinned to a hash (required by blanket policy)
- uses: actions/setup-python@v5

Check failure on line 51 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 51 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

ci.yaml:51: unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 51 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 51 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

ci.yaml:51: unpinned action reference: action is not pinned to a hash (required by blanket policy)
with:
python-version: '3.10'
cache: 'pip'
- run: pip install meson ninja
- uses: TheMrMilchmann/setup-msvc-dev@v3

Check failure on line 56 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 56 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

ci.yaml:56: unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 56 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 56 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

ci.yaml:56: unpinned action reference: action is not pinned to a hash (required by blanket policy)
with:
arch: x64
- run: meson setup builddir
- run: meson compile -C builddir

build-wasm:

Check warning on line 62 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

excessive-permissions

ci.yaml:62: overly broad permissions: default permissions used due to no permissions: block

Check warning on line 62 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

excessive-permissions

ci.yaml:62: overly broad permissions: default permissions used due to no permissions: block
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

Check failure on line 65 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 65 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

ci.yaml:65: unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 65 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 65 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

ci.yaml:65: unpinned action reference: action is not pinned to a hash (required by blanket policy)
- run: clang -v
- run: make CC="clang --target=wasm32"
- uses: actions/upload-artifact@v4

Check failure on line 68 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

ci.yaml:68: unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 68 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

ci.yaml:68: unpinned action reference: action is not pinned to a hash (required by blanket policy)
with:
name: liblc3.wasm
path: bin/liblc3.wasm

test-linux:

Check warning on line 73 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

excessive-permissions

ci.yaml:73: overly broad permissions: default permissions used due to no permissions: block

Check warning on line 73 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

excessive-permissions

ci.yaml:73: overly broad permissions: default permissions used due to no permissions: block
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -82,12 +82,21 @@
- run: gcc -v
- run: make test

install-python-linux:
runs-on: ubuntu-latest
test-python:

Check warning on line 85 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

excessive-permissions

ci.yaml:85: overly broad permissions: default permissions used due to no permissions: block

Check warning on line 85 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / zizmor-output

excessive-permissions

ci.yaml:85: overly broad permissions: default permissions used due to no permissions: block
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip'
- run: pip install .
- uses: TheMrMilchmann/setup-msvc-dev@v3
if: runner.os == 'Windows'
with:
arch: x64
- run: pip install . pytest
- run: pytest python/tests
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@ authors = [
description = "LC3 Codec library wrapper"
requires-python = ">=3.10"

[project.optional-dependencies]
[dependency-groups]
dev = ["pytest"]

[project.urls]
Homepage = "https://github.com/google/liblc3"

[tool.meson-python]
allow-windows-internal-shared-libs = true

[tool.meson-python.args]
setup = ['-Dpython=true']
Loading
Loading