Skip to content

Commit a1e3b07

Browse files
committed
Update to most recent Flatpak runtime (25.08)
Update LLVM from 18 to 20 at the same time
1 parent 3c1badf commit a1e3b07

File tree

2 files changed

+13
-17
lines changed

2 files changed

+13
-17
lines changed

.github/workflows/validate.yml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
concurrency:
1010
group: ${{ github.workflow }}-${{ github.ref }}
1111
cancel-in-progress: true
12-
12+
1313
jobs:
1414
build-linux:
1515
name: Build Linux
@@ -18,7 +18,7 @@ jobs:
1818
matrix:
1919
preset: ["linux-debug", "linux-release", "linux-relwithdebinfo"]
2020
env:
21-
LLVM_VERSION: 18
21+
LLVM_VERSION: 20
2222
CMAKE_PRESET: ${{ matrix.preset }}
2323

2424
steps:
@@ -38,7 +38,7 @@ jobs:
3838
uses: hendrikmuhs/[email protected]
3939
with:
4040
key: ccache-${{ runner.os }}-${{ matrix.preset }}
41-
41+
4242
- name: Cache vcpkg
4343
uses: actions/cache@v4
4444
with:
@@ -52,7 +52,7 @@ jobs:
5252
- name: Install Dependencies (Linux)
5353
run: |-
5454
sudo apt update
55-
sudo apt install -y ninja-build llvm-${{ env.LLVM_VERSION }}-dev libgtk-3-dev
55+
sudo apt install -y ninja-build clang-${{ env.LLVM_VERSION }} libgtk-3-dev
5656
5757
- name: Cache ccache Directory
5858
uses: actions/cache@v4
@@ -62,11 +62,11 @@ jobs:
6262

6363
- name: Prepare Project
6464
run: cp ./private/* ./UnleashedRecompLib/private
65-
65+
6666
- name: Configure Project
6767
env:
6868
CCACHE_DIR: /tmp/ccache
69-
run: cmake . --preset ${{ env.CMAKE_PRESET }} -DSDL2MIXER_VORBIS=VORBISFILE -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_C_COMPILER_LAUNCHER=ccache
69+
run: PATH="/usr/lib/llvm-${{ env.LLVM_VERSION }}/bin:$PATH" cmake . --preset ${{ env.CMAKE_PRESET }} -DSDL2MIXER_VORBIS=VORBISFILE -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_C_COMPILER_LAUNCHER=ccache
7070

7171
- name: Build Project
7272
env:
@@ -119,7 +119,7 @@ jobs:
119119
run: |
120120
choco install ninja
121121
Remove-Item -Path "C:\ProgramData\Chocolatey\bin\ccache.exe" -Force -ErrorAction SilentlyContinue
122-
122+
123123
- name: Configure Developer Command Prompt
124124
uses: ilammy/msvc-dev-cmd@v1
125125

@@ -134,7 +134,7 @@ jobs:
134134

135135
- name: Build Project
136136
run: cmake --build .\out\build\${{ env.CMAKE_PRESET }} --target UnleashedRecomp
137-
137+
138138
- name: Pack Release
139139
run: |
140140
New-Item -ItemType Directory -Path .\release
@@ -162,8 +162,6 @@ jobs:
162162
runs-on: ubuntu-24.04
163163
env:
164164
FLATPAK_ID: io.github.hedge_dev.unleashedrecomp
165-
FREEDESKTOP_VERSION: 23.08
166-
LLVM_VERSION: 18
167165

168166
steps:
169167
- name: Checkout Repository
@@ -190,13 +188,11 @@ jobs:
190188
key: ccache-${{ runner.os }}
191189

192190
- name: Prepare Project
193-
run: cp ./private/* ./UnleashedRecompLib/private
191+
run: cp ./private/* ./UnleashedRecompLib/private
194192

195193
- name: Prepare Flatpak
196194
run: |
197195
flatpak --user remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
198-
flatpak --user install -y flathub org.freedesktop.Sdk//${{ env.FREEDESKTOP_VERSION }}
199-
flatpak --user install -y flathub org.freedesktop.Sdk.Extension.llvm${{ env.LLVM_VERSION }}//${{ env.FREEDESKTOP_VERSION }}
200196
201197
- name: Build Flatpak
202198
run: |

flatpak/io.github.hedge_dev.unleashedrecomp.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"id": "io.github.hedge_dev.unleashedrecomp",
33
"runtime": "org.freedesktop.Platform",
4-
"runtime-version": "23.08",
4+
"runtime-version": "25.08",
55
"sdk": "org.freedesktop.Sdk",
6-
"sdk-extensions" : [ "org.freedesktop.Sdk.Extension.llvm18" ],
6+
"sdk-extensions" : [ "org.freedesktop.Sdk.Extension.llvm20" ],
77
"finish-args": [
88
"--share=network",
99
"--socket=wayland",
@@ -35,8 +35,8 @@
3535
}
3636
],
3737
"build-options": {
38-
"append-path": "/usr/lib/sdk/llvm18/bin",
39-
"prepend-ld-library-path": "/usr/lib/sdk/llvm18/lib",
38+
"append-path": "/usr/lib/sdk/llvm20/bin",
39+
"prepend-ld-library-path": "/usr/lib/sdk/llvm20/lib",
4040
"build-args": [
4141
"--share=network"
4242
]

0 commit comments

Comments
 (0)