Skip to content

Linux Build

Linux Build #13

Workflow file for this run

# 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 snapcraft
run: sudo snap install snapcraft --classic
- 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
/snap/bin/snapcraft snap --output=/home/runner/work/desktop/desktop/out/make/snap/x64/test.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