Skip to content

Commit

Permalink
Add build action for Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
dhadka committed Dec 24, 2023
1 parent e7edc2a commit 2ce315e
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 2 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Linux

on:
push:
branches: [ master ]

env:
EXECUTABLE: j3

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Setup Gluon's GraalVM
uses: gluonhq/setup-graalvm@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Install libraries
run: |
sudo apt update
sudo apt install libasound2-dev libavcodec-dev libavformat-dev libavutil-dev libgl-dev libgtk-3-dev libpango1.0-dev libxtst-dev
- name: Make staging directory
run: mkdir staging

#- name: Gluon License
# uses: gluonhq/gluon-build-license@v1
# with:
# gluon-license: ${{ secrets.GLUON_LICENSE }}

- name: Gluon Build
run: mvn gluonfx:build gluonfx:package

- name: Copy native image to staging
run: cp -r target/gluonfx/x86_64-linux/${EXECUTABLE}* staging

- name: Upload
uses: actions/upload-artifact@v2
with:
name: Package
path: staging
8 changes: 6 additions & 2 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: Windows

on:
push:
branches: [ master ]

env:
EXECUTABLE: j3

jobs:
build:
Expand Down Expand Up @@ -33,8 +37,8 @@ jobs:

- name: Copy native bundles to staging
run: |
cp target/gluonfx/x86_64-windows/j3.exe staging
cp target/gluonfx/x86_64-windows/j3-*.msi staging
cp target/gluonfx/x86_64-windows/${EXECUTABLE}.exe staging
cp target/gluonfx/x86_64-windows/${EXECUTABLE}-*.msi staging
- name: Upload
uses: actions/upload-artifact@v2
Expand Down

0 comments on commit 2ce315e

Please sign in to comment.