Skip to content

map physical controls #120

map physical controls

map physical controls #120

name: Test & Release
on:
push:
branches:
- '**'
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup bun
uses: oven-sh/setup-bun@v1
- name: Get bun cache directory
id: bun-cache-dir
run: |
echo "BUN_CACHE_DIR=$(bun pm cache)" >> $GITHUB_ENV
- name: Restore cache
uses: actions/cache@v3
id: bun-cache
with:
path: ${{ env.BUN_CACHE_DIR }}
key: ${{ runner.os }}-node-${{ hashFiles('**/bun.lockb') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: |
bun install
- name: Check code quality
run: |
make check-all
- name: Compile
run: make
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: mixxx-launchpad-${{ github.sha }}-${{ github.run_id }}
path: dist
release:
needs: test
runs-on: ubuntu-latest
if: github.ref_type == 'branch' && github.ref_name == 'master'
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup bun
uses: oven-sh/setup-bun@v1
- name: Get bun cache directory
id: bun-cache-dir
run: |
echo "BUN_CACHE_DIR=$(bun pm cache)" >> $GITHUB_ENV
- name: Restore cache
uses: actions/cache@v3
id: bun-cache
with:
path: ${{ env.BUN_CACHE_DIR }}
key: ${{ runner.os }}-node-${{ hashFiles('**/bun.lockb') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: |
bun install
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: mixxx-launchpad-${{ github.sha }}-${{ github.run_id }}
path: dist
- name: Create release
run: bunx semantic-release
env:
GITHUB_TOKEN: ${{ github.token }}