Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Temp fix nodecg job testing midi on 20.04 #1049

Merged
Merged
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
17 changes: 13 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ jobs:
# may not fail the run).
strategy:
matrix:
os: [ubuntu-latest, windows-2019]
os: [ubuntu-22.04, ubuntu-20.04, windows-2019]
runs-on: ${{ matrix.os }}
continue-on-error: true
steps:
- uses: actions/[email protected]
with:
Expand Down Expand Up @@ -103,7 +104,7 @@ jobs:
run: npm run build

- name: Setup NodeCG config linux
if: matrix.os == 'ubuntu-latest'
if: (matrix.os == 'ubuntu-22.04' || matrix.os == 'ubuntu-20.04')
run: |
mkdir cfg
echo '{"bundles": {"paths": ["'${GITHUB_WORKSPACE}'/nodecg-io","'${GITHUB_WORKSPACE}'/nodecg-io/services","'${GITHUB_WORKSPACE}'/nodecg-io/samples"]}}' > ./cfg/nodecg.json
Expand All @@ -121,8 +122,16 @@ jobs:
path: "nodecg-io"

- name: Install system dependencies
if: matrix.os == 'ubuntu-latest'
if: (matrix.os == 'ubuntu-22.04' || matrix.os == 'ubuntu-20.04')
run: sudo apt update && sudo apt-get -y install libusb-1.0-0-dev libasound2-dev libudev-dev

- name: Temp patch \#1030 (ubuntu 22.04) – Removing midi services / samples
working-directory: ./nodecg-io
if: matrix.os == 'ubuntu-22.04'
run: |
sudo rm -rf ./services/nodecg-io-midi-*
sudo rm -rf ./samples/midi-*


- name: Install node native development files
shell: bash
Expand All @@ -143,7 +152,7 @@ jobs:
# to the `audio` group which doesn't work for us, as it would only take affect on next login,
# but we cannot logout and login in CI.
- name: Run test (ubuntu)
if: matrix.os == 'ubuntu-latest'
if: (matrix.os == 'ubuntu-22.04' || matrix.os == 'ubuntu-20.04')
run: sudo node .scripts/ci-nodecg-integration.mjs
working-directory: ./nodecg-io

Expand Down