forked from antoniofaccioli/libreoffice-appimage
-
Notifications
You must be signed in to change notification settings - Fork 1
123 lines (101 loc) · 3.07 KB
/
Copy pathCI-fresh.yml
File metadata and controls
123 lines (101 loc) · 3.07 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
name: LibreOffice Fresh
concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true
on:
schedule:
- cron: "0 18 * * 0"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 15
matrix:
language:
- en-GB
- ar
- de
- es
- fr
- it
- ja
- ko
- pt
- pt-BR
- ru
- zh-CN
- zh-TW
- standard
- full
steps:
- uses: actions/checkout@v7
- name: Install dependencies
run: |
sudo apt update
sudo apt install -y desktop-file-utils
sudo sysctl -w kernel.apparmor_restrict_unprivileged_unconfined=0
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
- name: Install appimagetool
run: |
wget -q https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-x86_64.AppImage -O appimagetool || exit 1
chmod +x appimagetool
sudo mv appimagetool /usr/local/bin/appimagetool
- name: Build ${{ matrix.language }}
run: |
chmod +x ./make_libreoffice_appimage
./make_libreoffice_appimage fresh x86-64 "${{ matrix.language }}" N Y Y Y
./make_libreoffice_appimage fresh x86-64 "${{ matrix.language }}" Y Y Y Y
echo "=== AppImage files found ==="
find . -name '*AppImage*' || true
mkdir -p dist
find . -type f -name '*AppImage*' -exec mv {} dist/ \; || true
echo "=== dist contents ==="
ls -lah dist
- name: Upload artifact
uses: actions/upload-artifact@v7.0.1
with:
name: AppImage-${{ matrix.language }}
path: dist
if-no-files-found: error
release:
needs: build
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Download all artifacts
uses: actions/download-artifact@v8.0.1
with:
path: artifacts
merge-multiple: true
- name: Show collected files
run: |
echo "=== Collected artifacts ==="
find artifacts -type f
# Snapshot Release
- name: Generate snapshot tag
run: |
SNAPSHOT_TAG="$(date --utc +'%Y%m%d-%H%M%S')"
echo "SNAPSHOT_TAG=$SNAPSHOT_TAG" >> "$GITHUB_ENV"
- name: Snapshot release
uses: softprops/action-gh-release@v3
with:
name: Snapshot FRESH ${{ env.SNAPSHOT_TAG }}
tag_name: ${{ env.SNAPSHOT_TAG }}
prerelease: false
draft: false
make_latest: false
generate_release_notes: false
files: artifacts/**
# Continuous release
- name: Continuous release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
automatic_release_tag: continuous-fresh
title: LibreOffice FRESH
prerelease: false
draft: false
files: artifacts/**