mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-30 19:38:31 +03:00
update cspot
This commit is contained in:
39
components/spotify/cspot/bell/nanopb/.github/workflows/cifuzz.yml
vendored
Normal file
39
components/spotify/cspot/bell/nanopb/.github/workflows/cifuzz.yml
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
name: CIFuzz
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- '**.c'
|
||||
- '**.h'
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- '**.c'
|
||||
- '**.h'
|
||||
|
||||
jobs:
|
||||
Fuzzing:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Build Fuzzers
|
||||
id: build
|
||||
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
|
||||
with:
|
||||
oss-fuzz-project-name: 'nanopb'
|
||||
dry-run: false
|
||||
sanitizer: undefined
|
||||
- name: Run Fuzzers
|
||||
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
|
||||
with:
|
||||
oss-fuzz-project-name: 'nanopb'
|
||||
fuzz-seconds: 600
|
||||
dry-run: false
|
||||
sanitizer: undefined
|
||||
- name: Upload Crash
|
||||
uses: actions/upload-artifact@v1
|
||||
if: failure() && steps.build.outcome == 'success'
|
||||
with:
|
||||
name: artifacts
|
||||
path: ./out/artifacts
|
||||
63
components/spotify/cspot/bell/nanopb/.github/workflows/platformio.yaml
vendored
Normal file
63
components/spotify/cspot/bell/nanopb/.github/workflows/platformio.yaml
vendored
Normal file
@@ -0,0 +1,63 @@
|
||||
name: platformio
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
platformio:
|
||||
name: Build and run PlatformIO example
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: ⤵️ Check out code from GitHub
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
path: nanopb
|
||||
|
||||
- name: Installing dependencies for local act
|
||||
if: ${{ env.ACT }}
|
||||
run: |
|
||||
sudo apt update
|
||||
|
||||
- name: Installing common dependencies
|
||||
run: |
|
||||
sudo apt install -y python3-pip
|
||||
|
||||
- name: Install and setup PlatformIO
|
||||
run: |
|
||||
pip3 install -U platformio
|
||||
export PATH=~/.local/bin:$PATH
|
||||
|
||||
- name: Build PlatformIO package
|
||||
run: |
|
||||
cd nanopb
|
||||
pio package pack
|
||||
|
||||
- name: Example - Extract PlatformIO package to example dir
|
||||
run: |
|
||||
cp -R nanopb/examples/platformio example
|
||||
mkdir -p example/lib/nanopb
|
||||
tar -xzf nanopb/Nanopb-*.tar.gz -C example/lib/nanopb
|
||||
|
||||
- name: Example - Build
|
||||
run: |
|
||||
cd example
|
||||
pio run
|
||||
|
||||
- name: Example - Run test without options
|
||||
run: example/.pio/build/pio_without_options/program
|
||||
|
||||
- name: Example - Run test with options
|
||||
run: example/.pio/build/pio_with_options/program
|
||||
|
||||
- name: Build with default platformio.ini
|
||||
run: |
|
||||
mkdir -p test_default_pio_conf
|
||||
cd test_default_pio_conf
|
||||
pio project init
|
||||
ln -s ../nanopb lib/nanopb
|
||||
echo "[env:native]" >> platformio.ini
|
||||
echo "platform = native" >> platformio.ini
|
||||
echo "lib_deps = Nanopb" >> platformio.ini
|
||||
echo "int main(int argc, char *argv[]){}" > src/main.cpp
|
||||
pio run
|
||||
15
components/spotify/cspot/bell/nanopb/.github/workflows/spm.yml
vendored
Normal file
15
components/spotify/cspot/bell/nanopb/.github/workflows/spm.yml
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
name: spm
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
swift-build-run:
|
||||
runs-on: macOS-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Build
|
||||
run: swift build
|
||||
- name: Run
|
||||
run: swift test
|
||||
Reference in New Issue
Block a user