Skip to content

Commit 0483517

Browse files
committed
ci: fix a few issues
add --no-install-recommends to all apt-get install calls fix formatting of all files
1 parent 93b8da6 commit 0483517

File tree

7 files changed

+91
-93
lines changed

7 files changed

+91
-93
lines changed

.github/workflows/android.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
release:
55
types: [published]
66
push:
7-
branches: ["main"]
7+
branches: ['main']
88
pull_request:
99
workflow_dispatch:
1010

@@ -23,7 +23,7 @@ jobs:
2323
steps:
2424
- uses: actions/checkout@v4
2525
with:
26-
fetch-depth: "0"
26+
fetch-depth: '0'
2727

2828
# NOTE: meson has no dependencies, so --break-system-packages doesn't really break anything!
2929
- name: Setup Meson
@@ -32,30 +32,29 @@ jobs:
3232
3333
- name: Setup ninja
3434
run: |
35-
sudo apt-get update
36-
sudo apt-get install ninja-build jq
35+
sudo apt-get update
36+
sudo apt-get install ninja-build jq -y --no-install-recommends
3737
3838
- name: Setup JDK
3939
uses: actions/setup-java@v4
4040
with:
4141
distribution: 'temurin'
4242
java-version: '21'
43-
43+
4444
- name: Setup Android SDK
4545
uses: android-actions/setup-android@v3
46-
46+
4747
- name: Setup NDK
48-
run: |
48+
run: |
4949
sdkmanager --install "ndk;27.1.12297006"
5050
51-
5251
- name: Build native libraries
5352
run: |
5453
bash ./platforms/build-android.sh ${{ matrix.config.arch }} complete_rebuild release
5554
cp -r ./assets/ platforms/android/app/src/main
5655
5756
- name: Build APK
58-
run: |
57+
run: |
5958
cd platforms/android/
6059
./gradlew assembleDebug --no-daemon -PANDROID_ABI=${{ matrix.config.arch }}
6160

.github/workflows/build.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Build CI
22

33
on:
44
push:
5-
branches: ["main"]
5+
branches: ['main']
66
pull_request:
77
workflow_dispatch:
88

@@ -30,7 +30,7 @@ jobs:
3030
architecture: x86_64
3131
buildtype: release
3232
library_type: static
33-
shell: "msys2 {0}"
33+
shell: 'msys2 {0}'
3434

3535
- name: Windows UCRT Release
3636
os: windows
@@ -39,7 +39,7 @@ jobs:
3939
architecture: ucrt-x86_64
4040
buildtype: release
4141
library_type: static
42-
shell: "msys2 {0}"
42+
shell: 'msys2 {0}'
4343

4444
- name: Linux Release
4545
os: ubuntu
@@ -90,15 +90,14 @@ jobs:
9090
steps:
9191
- uses: actions/checkout@v4
9292
with:
93-
fetch-depth: "0"
93+
fetch-depth: '0'
9494

9595
- name: Setup MSVC (Windows)
9696
if: matrix.config.os == 'windows' && matrix.config.environment == 'msvc'
9797
uses: TheMrMilchmann/setup-msvc-dev@v3
9898
with:
9999
arch: x64
100-
toolset: "14.41"
101-
100+
toolset: '14.41'
102101

103102
- name: Setup MYSYS2 (Windows)
104103
if: matrix.config.os == 'windows' && ( matrix.config.environment == 'mingw' || matrix.config.environment == 'ucrt' )
@@ -126,7 +125,7 @@ jobs:
126125
wget https://apt.llvm.org/llvm.sh
127126
chmod +x llvm.sh
128127
sudo ./llvm.sh 19
129-
sudo apt-get install libc++-19* libc++abi*19* -y
128+
sudo apt-get install libc++-19* libc++abi*19* -y --no-install-recommends
130129
echo "CC=clang-19" >> "$GITHUB_ENV"
131130
echo "CXX=clang++-19" >> "$GITHUB_ENV"
132131
echo "OBJC=clang-19" >> "$GITHUB_ENV"
@@ -143,7 +142,7 @@ jobs:
143142
# Also install the newest g++ (For the libstd++ library)
144143
echo "deb http://archive.ubuntu.com/ubuntu/ oracular main" | sudo tee -a /etc/apt/sources.list.d/new_ubuntu.list
145144
sudo apt-get update
146-
sudo apt-get install libstdc++-14-dev -y
145+
sudo apt-get install libstdc++-14-dev -y --no-install-recommends
147146
sudo rm -rf /etc/apt/sources.list.d/new_ubuntu.list
148147
sudo apt-get update
149148
@@ -171,7 +170,7 @@ jobs:
171170
echo "OBJC_LD=lld" >> "$GITHUB_ENV"
172171
173172
- name: Unbreak Python in GHA (MacOS 13 image)
174-
if: matrix.config.os == 'macos' && matrix.config.os-version == 13
173+
if: matrix.config.os == 'macos' && matrix.config.os-version == 13
175174
run: |
176175
# TODO: remove this, after it works again
177176
# A workaround for "The `brew link` step did not complete successfully" error.
@@ -196,7 +195,7 @@ jobs:
196195
if: matrix.config.os == 'ubuntu'
197196
run: |
198197
sudo apt-get update
199-
sudo apt-get install ninja-build libsdl2-2.0-0 libsdl2-dev libsdl2-ttf* libsdl2-mixer* libsdl2-image* -y
198+
sudo apt-get install ninja-build libsdl2-2.0-0 libsdl2-dev libsdl2-ttf* libsdl2-mixer* libsdl2-image* -y --no-install-recommends
200199
201200
- name: Install dependencies (MacOS)
202201
if: matrix.config.os == 'macos'
@@ -205,10 +204,10 @@ jobs:
205204
brew install sdl2 sdl2_ttf sdl2_mixer sdl2_image
206205
207206
- name: Configure
208-
run: meson setup build -Dbuildtype=${{ matrix.config.buildtype }} -Ddefault_library=${{ matrix.config.library_type }} -Dclang_libcpp=${{ ( ( matrix.config.os == 'ubuntu' && matrix.config.use-clang == true && matrix.config.use-clang_stdlib ) || matrix.config.os == 'macos' ) && 'enabled' || 'disabled' }}
207+
run: meson setup build -Dbuildtype=${{ matrix.config.buildtype }} -Ddefault_library=${{ matrix.config.library_type }} -Dclang_libcpp=${{ ( ( matrix.config.os == 'ubuntu' && matrix.config.use-clang == true && matrix.config.use-clang_stdlib ) || matrix.config.os == 'macos' ) && 'enabled' || 'disabled' }}
209208

210209
- name: Build
211-
run: meson compile -C build
210+
run: meson compile -C build
212211

213212
- name: Upload artifacts
214213
uses: actions/upload-artifact@v4

.github/workflows/cpp-linter.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: C++ lints(clang-format + clang-tidy)
22
on:
33
push:
4-
branches: ["main"]
4+
branches: ['main']
55
pull_request:
66
workflow_dispatch:
77

@@ -14,7 +14,7 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v4
1616

17-
# NOTE: meson has no dependencies, so --break-system-packages doesn't really break anything!
17+
# NOTE: meson has no dependencies, so --break-system-packages doesn't really break anything!
1818
- name: Setup Meson
1919
run: |
2020
pip install meson --break-system-packages
@@ -28,8 +28,8 @@ jobs:
2828
- name: Prepare compile_commands.json
2929
run: |
3030
sudo apt-get update
31-
sudo apt-get install ninja-build libsdl2-2.0-0 libsdl2-dev libsdl2-ttf* libsdl2-mixer* libsdl2-image* -y
32-
31+
sudo apt-get install ninja-build libsdl2-2.0-0 libsdl2-dev libsdl2-ttf* libsdl2-mixer* libsdl2-image* -y --no-install-recommends
32+
3333
meson setup build -Dbuildtype=release -Dclang_libcpp=disabled -Dtests=true
3434
meson compile -C build git_version.hpp
3535
@@ -45,7 +45,7 @@ jobs:
4545
files-changed-only: ${{ github.event_name != 'workflow_dispatch' }}
4646
lines-changed-only: ${{ github.event_name != 'workflow_dispatch' }}
4747
thread-comments: true
48-
tidy-checks: ""
48+
tidy-checks: ''
4949
step-summary: true
5050
file-annotations: true
5151
ignore: subprojects|build|android|assets|recordings|docs|toolchains|platforms|wrapper|src/libs/core/hash-library

.github/workflows/flatpak.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ on:
44
release:
55
types: [published]
66
push:
7-
branches: ["main"]
7+
branches: ['main']
88
pull_request:
99
workflow_dispatch:
1010

1111
jobs:
1212
flatpak:
13-
name: "Flatpak build"
13+
name: 'Flatpak build'
1414
runs-on: ubuntu-24.04
1515
container:
1616
image: bilelmoussaoui/flatpak-github-actions:freedesktop-24.08

.github/workflows/installer.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Installer CI
22

33
on:
44
push:
5-
branches: ["main"]
5+
branches: ['main']
66
pull_request:
77
workflow_dispatch:
88

@@ -29,33 +29,33 @@ jobs:
2929
steps:
3030
- uses: actions/checkout@v4
3131
with:
32-
fetch-depth: "0"
32+
fetch-depth: '0'
3333

3434
- name: Setup MSVC (Windows)
3535
if: matrix.config.os == 'windows' && matrix.config.msvc == true
3636
uses: TheMrMilchmann/setup-msvc-dev@v3
3737
with:
3838
arch: x64
39-
toolset: "14.41"
39+
toolset: '14.41'
4040

4141
- name: Setup meson
4242
if: matrix.config.os != 'macos'
4343
run: |
4444
pip install meson
4545
4646
- name: Configure
47-
run: meson setup build -Dbuildtype=${{ matrix.config.buildtype }} -Ddefault_library=${{ matrix.config.library_type }} -Dclang_libcpp=${{ ( ( matrix.config.os == 'ubuntu' && matrix.config.use-clang == true && matrix.config.use-clang_stdlib ) || matrix.config.os == 'macos' ) && 'enabled' || 'disabled' }} -Dbuild_installer=true
47+
run: meson setup build -Dbuildtype=${{ matrix.config.buildtype }} -Ddefault_library=${{ matrix.config.library_type }} -Dclang_libcpp=${{ ( ( matrix.config.os == 'ubuntu' && matrix.config.use-clang == true && matrix.config.use-clang_stdlib ) || matrix.config.os == 'macos' ) && 'enabled' || 'disabled' }} -Dbuild_installer=true
4848

4949
- name: Build
50-
run: meson compile -C build
50+
run: meson compile -C build
5151

5252
- name: Download EnVar plugin for NSIS
5353
uses: carlosperate/download-file-action@v2
5454
with:
5555
file-url: https://nsis.sourceforge.io/mediawiki/images/7/7f/EnVar_plugin.zip
5656
file-name: envar_plugin.zip
5757
location: ${{ github.workspace }}
58-
58+
5959
- name: Extract EnVar plugin
6060
run: 7z x "-oC:/Program Files (x86)/NSIS" "${{ github.workspace }}/envar_plugin.zip"
6161

.github/workflows/nintendo.yml

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,52 @@
11
name: Nintendo CI
22

33
on:
4-
push:
5-
branches: ["main"]
6-
pull_request:
7-
workflow_dispatch:
4+
push:
5+
branches: ['main']
6+
pull_request:
7+
workflow_dispatch:
88

99
jobs:
10-
nintendo-build:
11-
name: Nintendo ${{ matrix.config.name }} CI
12-
runs-on: ubuntu-24.04
13-
container:
14-
image: devkitpro/${{ matrix.config.container }} ## base on debian:buster-slim
15-
strategy:
16-
fail-fast: false
17-
matrix:
18-
config:
19-
- name: 3ds
20-
extension: 3dsx
21-
container: devkitarm
22-
23-
- name: switch
24-
extension: nro
25-
container: devkita64
26-
27-
steps:
28-
- uses: actions/checkout@v4
29-
with:
30-
fetch-depth: "0"
31-
32-
- name: Setup Meson
33-
run: |
34-
sudo apt-get update
35-
sudo apt-get install python3 python3-pip -y
36-
python3 -m pip install --upgrade pip
37-
pip install meson
38-
39-
- name: Setup ninja
40-
run: |
41-
sudo apt-get update
42-
sudo apt-get install ninja-build
43-
44-
- name: Configure and Build
45-
run: |
46-
bash ./platforms/build-${{ matrix.config.name }}.sh complete_rebuild release
47-
48-
- name: Upload artifacts
49-
uses: actions/upload-artifact@v4
50-
with:
51-
name: ${{ matrix.config.name }} Executable
52-
path: build-${{ matrix.config.name }}/oopetris.${{ matrix.config.extension }}
10+
nintendo-build:
11+
name: Nintendo ${{ matrix.config.name }} CI
12+
runs-on: ubuntu-24.04
13+
container:
14+
image: devkitpro/${{ matrix.config.container }} ## base on debian:buster-slim
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
config:
19+
- name: 3ds
20+
extension: 3dsx
21+
container: devkitarm
22+
23+
- name: switch
24+
extension: nro
25+
container: devkita64
26+
27+
steps:
28+
- uses: actions/checkout@v4
29+
with:
30+
fetch-depth: '0'
31+
32+
- name: Setup Meson
33+
run: |
34+
sudo apt-get update
35+
sudo apt-get install python3 python3-pip -y --no-install-recommends
36+
python3 -m pip install --upgrade pip
37+
pip install meson
38+
39+
- name: Setup ninja
40+
run: |
41+
sudo apt-get update
42+
sudo apt-get install ninja-build -y --no-install-recommends
43+
44+
- name: Configure and Build
45+
run: |
46+
bash ./platforms/build-${{ matrix.config.name }}.sh complete_rebuild release
47+
48+
- name: Upload artifacts
49+
uses: actions/upload-artifact@v4
50+
with:
51+
name: ${{ matrix.config.name }} Executable
52+
path: build-${{ matrix.config.name }}/oopetris.${{ matrix.config.extension }}

0 commit comments

Comments
 (0)