51 lines
1.2 KiB
YAML
51 lines
1.2 KiB
YAML
name: build-binaries
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
tags:
|
|
- 'v*'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
linux:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.11'
|
|
|
|
- name: Install OS deps
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y python3-venv libfuse2 wget
|
|
|
|
- name: Build Linux binary
|
|
run: bash build/build_linux.sh
|
|
|
|
- name: Install appimagetool
|
|
run: |
|
|
wget -O /tmp/appimagetool.AppImage \
|
|
https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage
|
|
chmod +x /tmp/appimagetool.AppImage
|
|
sudo mv /tmp/appimagetool.AppImage /usr/local/bin/appimagetool
|
|
|
|
- name: Build AppImage
|
|
run: bash build/build_appimage.sh
|
|
|
|
- name: Upload binary artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: TrulyMEM-linux-${{ github.sha }}
|
|
path: |
|
|
dist/TrulyMEM
|
|
dist/TrulyMEM.desktop
|
|
dist/TrulyMEM.AppImage
|
|
if-no-files-found: error
|
|
retention-days: 30
|