Linux Build #10
This file contains 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
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: Linux Build | |
on: | |
release: | |
types: [created] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Retrieve the secret and write it to a file | |
env: | |
SECRET_FILE: ${{ secrets.SECRET_FILE }} | |
run: | | |
echo $SECRET_FILE > ./src/secrets.json | |
- name: install libusb | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libusb-1.0-0-dev | |
sudo apt-get install -y libudev-dev | |
- name: Retrieve the settings and write them to a file | |
env: | |
SETTINGS_FILE: ${{ secrets.SETTINGS_FILE }} | |
run: | | |
echo $SETTINGS_FILE > ./config/settings.json | |
cat ./config/settings.json | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: | | |
npm install | |
npm run make-snap | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: AppImage | |
path: | | |
./out/make/*.AppImage | |
./out/make/latest-linux.yml | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: snap | |
path: ./out/make/*.snap |