-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (41 loc) · 1.31 KB
/
appimage.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Build AppImage
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.21.5'
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgl1-mesa-dev libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev libglfw3-dev libxxf86vm-dev
- name: Build the Go application
run: |
GOOS=linux go build -o cycles
- name: Prepare AppDir
run: |
mkdir AppDir
cp cycles AppDir/
cp appimage/tylercode-cycles.desktop AppDir/
cp appimage/icon.png AppDir/
echo '#!/bin/sh' > AppDir/AppRun
echo 'pwd'
echo 'ls -alh'
echo './cycles' >> AppDir/AppRun
chmod +x AppDir/AppRun
- name: Download appimagetool
run: |
wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage
chmod +x appimagetool-x86_64.AppImage
- name: Build AppImage
run: |
./appimagetool-x86_64.AppImage --appimage-extract-and-run AppDir/ Cycles.AppImage
- name: Upload AppImage
uses: actions/upload-artifact@v2
with:
name: Cycles-AppImage
path: Cycles.AppImage