Skip to content

Commit

Permalink
ci: add linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
Bogdanp committed Oct 16, 2023
1 parent 6402f7b commit 756e2f5
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/build_linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
on: [push]
name: Build on Linux
jobs:
build_linux_app:
runs-on: ubuntu-22.04
name: Build Franz on Ubuntu 22.04
steps:
- uses: actions/checkout@master
- uses: Bogdanp/[email protected]
with:
architecture: 'x64'
distribution: 'full'
variant: 'CS'
version: '8.10'
- name: Install Noise
run: |
env GIT_LFS_SKIP_SMUDGE=1 \
git clone \
--depth 1 \
--branch racket-8.10 \
https://github.com/Bogdanp/Noise Noise
raco pkg install -D --batch --auto Noise/Racket/noise-serde-lib/
- name: Prepare secrets
run: |
echo -n "$LICENSE_SECRET" | base64 -d > core/secrets/license-secret.txt
echo -n "$SENTRY_DSN" | base64 -d > core/secrets/sentry-dsn.txt
env:
LICENSE_SECRET: ${{ secrets.LICENSE_SECRET }}
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
- name: Install core
run: raco pkg install -D --batch --auto --name franz core/
- name: Install FranzCross
run: raco pkg install -D --batch --auto FranzCross/
- name: Build distribution
run: bash ./build.sh
working-directory: FranzCross
- name: Upload distribution
uses: actions/upload-artifact@v3
with:
name: Franz.zip
path: FranzCross/dist
13 changes: 13 additions & 0 deletions FranzCross/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash

set -euo pipefail

raco exe \
-o Franz \
--gui \
--ico ./assets/icon.ico \
++lang lua \
++lib lua/lang/runtime-config \
++lib racket/runtime-config \
./main.rkt
raco dist dist Franz

0 comments on commit 756e2f5

Please sign in to comment.