instruments: MIDI pat files and config #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - master | |
| workflow_dispatch: | |
| inputs: | |
| refToBuild: | |
| description: 'Branch, tag or commit SHA1 to build' | |
| required: true | |
| type: string | |
| jobs: | |
| ubuntu-build: | |
| runs-on: ubuntu-latest | |
| name: "Linux Ubuntu" | |
| container: | |
| image: ubuntu:latest | |
| env: | |
| DEBIAN_FRONTEND: noninteractive | |
| TZ: Etc/UTC | |
| steps: | |
| - name: Install GIT | |
| run: | | |
| # install GIT, as without it checkout would use REST API | |
| apt update | |
| apt install -y \ | |
| git | |
| - name: Checkout code at latest head | |
| if: "${{ inputs.refToBuild == '' }}" | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Checkout code at requested ref | |
| if: "${{ inputs.refToBuild != '' }}" | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ inputs.refToBuild }} | |
| fetch-depth: 0 | |
| - name: Set ownership | |
| run: | | |
| # this is to fix GIT not liking owner of the checkout dir | |
| chown -R $(id -u):$(id -g) $PWD | |
| - name: Install dependencies | |
| run: | | |
| apt install -y \ | |
| build-essential autoconf autoconf-archive libtool make wget unzip | |
| - name: Download extra tools | |
| run: | | |
| wget https://github.com/swfans/sndbanker/releases/download/1.0.2.23/sndbanker-1_0_2_23-x86_64-ubuntu.zip | |
| unzip -o -j -d /usr/local/bin/ sndbanker-1_0_2_23-x86_64-ubuntu.zip | |
| - name: Autoreconf | |
| run: autoreconf -ivf | |
| - name: Configure | |
| run: | | |
| mkdir -p release; cd release | |
| ../configure --prefix="/" | |
| - name: Build data files | |
| run: | | |
| cd release | |
| make V=1 | |
| - name: Copy for package | |
| run: | | |
| cd release | |
| # Get version marking from C header | |
| PKG_VERSION=$(sed -n 's/^#define[ ]\+SFX_PACKAGE_VERSION "\([^"]\+\)"$/\1/p' sfx_config.h | head -n 1 | tr '.' '_') | |
| make V=1 DESTDIR=$PWD/pkg install | |
| echo "PKG_NAME=syndicatfx-sfx-$PKG_VERSION" >> $GITHUB_ENV | |
| - name: Upload artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ env.PKG_NAME }} | |
| path: release/pkg/** |