-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (39 loc) · 1.2 KB
/
flatpak.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
name: Flatpak
on:
push:
branches:
- master
pull_request:
workflow_dispatch: # allows for manual dispatch
jobs:
flatpak:
name: "Flatpak"
runs-on: ubuntu-latest
env:
ver:
container:
image: bilelmoussaoui/flatpak-github-actions:gnome-46
options: --privileged
volumes:
- /usr/local/lib/android:/usr/local/lib/android
- /usr/share/dotnet:/usr/share/dotnet
- /opt/ghc:/opt/ghc1
- /usr/local/share/boost:/usr/local/share/boost1
steps:
- name: "Remove unneeded stuff to free disk space"
run:
rm -rf /usr/local/lib/android/* /usr/share/dotnet/* /opt/ghc1/* "/usr/local/share/boost1/*"
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get version using most recent tag
run: |
git config --global --add safe.directory /__w/io.github.softfever.OrcaSlicer/io.github.softfever.OrcaSlicer
ver=$(git describe --tags)
echo "ver=$ver" >> $GITHUB_ENV
shell: bash
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6
with:
bundle: OrcaSlicer-${{ env.ver }}.flatpak
manifest-path: io.github.softfever.OrcaSlicer.yml
cache: true