Skip to content

Commit 2357260

Browse files
committed
WIP cache
1 parent f135feb commit 2357260

1 file changed

Lines changed: 86 additions & 67 deletions

File tree

.github/workflows/build-tests.yaml

Lines changed: 86 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -8,88 +8,107 @@ on:
88
jobs:
99
linux:
1010
name: "Linux build"
11-
runs-on: ubuntu-latest
11+
runs-on: ubuntu-slim
1212
env:
1313
PREFIX: "/usr"
1414
PY3PATH: ""
1515
steps:
1616
- name: Checkout
1717
uses: actions/checkout@v4
1818

19-
- name: Install dependencies
19+
- name: Set up Launchpad PPA
20+
# id: launchpad_ppa
2021
run: |
21-
sudo add-apt-repository -y ppa:dciabrin/ngdevkit
22-
sudo apt-get update -y
23-
sudo apt-get install -y ngdevkit-toolchain python3 zip pkg-config
22+
sudo ls /var/cache/apt/archives
23+
sudo apt-cache policy sox
24+
sudo apt-get install -y sox
25+
sudo apt-cache policy sox
26+
sudo ls /var/cache/apt/archives
27+
toolchain_version=$(sudo apt-cache policy sox | awk '/Candidate:/ {print $2}')
28+
/bin/echo FOO "${toolchain_version}" BAR
2429
25-
- name: Build ngdevkit
26-
run: ./.github/scripts/build.sh
30+
# echo "toolchain_cache=sox_${toolchain_version}" >> "$GITHUB_OUTPUT"
2731

28-
- name: Install dependencies for ngdevkit-examples
29-
run: >
30-
sudo apt-get install -y python3-yaml ngdevkit-gngeo python3-pygame imagemagick
31-
sox libsox-fmt-mp3 libglew-dev libsdl2-dev
32+
# - name: Cache ngdevkit-toolchain package
33+
# uses: actions/cache@v5
34+
# with:
35+
# key: ${{ steps.launchpad_ppa.toolchain_cache }}
36+
# path: |
37+
# /var/cache/apt/archives/${{ steps.launchpad_ppa.toolchain_cache }}*.deb
3238

33-
- name: Test by compiling ngdevkit-examples
34-
run: ./.github/scripts/test.sh
39+
# - name: Install dependencies
40+
# run: |
41+
# apt-get install -y sox
42+
# # sudo apt-get install -y ngdevkit-toolchain python3 zip pkg-config
3543

36-
win:
37-
name: "Windows native MSYS2 build"
38-
runs-on: windows-latest
39-
env:
40-
PY3PATH: ""
41-
defaults:
42-
run:
43-
shell: msys2 {0}
44-
steps:
45-
- name: Checkout
46-
uses: actions/checkout@v4
47-
with:
48-
fetch-depth: 0
49-
50-
- name: Install MSYS2
51-
uses: msys2/setup-msys2@v2
52-
with:
53-
msystem: UCRT64
54-
update: true
55-
install:
56-
git autoconf automake make zip
57-
mingw-w64-ucrt-x86_64-pkg-config mingw-w64-ucrt-x86_64-python
58-
mingw-w64-ucrt-x86_64-python-pygame
59-
60-
- name: Install ngdevkit dependencies
61-
run: |
62-
echo -e "[ngdevkit]\nSigLevel = Optional TrustAll\nServer = https://dciabrin.net/msys2-ngdevkit/\$arch" >> /etc/pacman.conf
63-
pacman -Sy
64-
pacman -S --disable-download-timeout --noconfirm mingw-w64-ucrt-x86_64-ngdevkit-toolchain
44+
# - name: Build ngdevkit
45+
# run: ./.github/scripts/build.sh
6546

66-
- name: Build
67-
run: ./.github/scripts/build-msys2.sh
47+
# - name: Install dependencies for ngdevkit-examples
48+
# run: >
49+
# sudo apt-get install -y python3-yaml ngdevkit-gngeo python3-pygame imagemagick
50+
# sox libsox-fmt-mp3 libglew-dev libsdl2-dev
6851

69-
macos:
70-
name: "macOS build"
71-
runs-on: macos-15
72-
env:
73-
PREFIX: "/opt/homebrew"
74-
PY3PATH: "/opt/homebrew/bin"
75-
steps:
76-
- name: Checkout
77-
uses: actions/checkout@v4
52+
# - name: Test by compiling ngdevkit-examples
53+
# run: ./.github/scripts/test.sh
7854

79-
- name: Dependencies
80-
run: |
81-
brew tap dciabrin/ngdevkit
82-
brew install python3 --overwrite
83-
brew install automake ngdevkit-toolchain zip pkg-config sdl2 sdl2_image
84-
$(brew --prefix python)/libexec/bin/pip install pygame --break-system-packages
55+
# win:
56+
# name: "Windows native MSYS2 build"
57+
# runs-on: windows-latest
58+
# env:
59+
# PY3PATH: ""
60+
# defaults:
61+
# run:
62+
# shell: msys2 {0}
63+
# steps:
64+
# - name: Checkout
65+
# uses: actions/checkout@v4
66+
# with:
67+
# fetch-depth: 0
8568

86-
- name: Build
87-
run: ./.github/scripts/build.sh
69+
# - name: Install MSYS2
70+
# uses: msys2/setup-msys2@v2
71+
# with:
72+
# msystem: UCRT64
73+
# update: true
74+
# install:
75+
# git autoconf automake make zip
76+
# mingw-w64-ucrt-x86_64-pkg-config mingw-w64-ucrt-x86_64-python
77+
# mingw-w64-ucrt-x86_64-python-pygame
8878

89-
- name: Install dependencies for ngdevkit-examples
90-
run: |
91-
brew install ngdevkit-gngeo imagemagick sox glew make
92-
$(brew --prefix python)/libexec/bin/pip install pyyaml --break-system-packages
79+
# - name: Install ngdevkit dependencies
80+
# run: |
81+
# echo -e "[ngdevkit]\nSigLevel = Optional TrustAll\nServer = https://dciabrin.net/msys2-ngdevkit/\$arch" >> /etc/pacman.conf
82+
# pacman -Sy
83+
# pacman -S --disable-download-timeout --noconfirm mingw-w64-ucrt-x86_64-ngdevkit-toolchain
84+
85+
# - name: Build
86+
# run: ./.github/scripts/build-msys2.sh
87+
88+
# macos:
89+
# name: "macOS build"
90+
# runs-on: macos-15
91+
# env:
92+
# PREFIX: "/opt/homebrew"
93+
# PY3PATH: "/opt/homebrew/bin"
94+
# steps:
95+
# - name: Checkout
96+
# uses: actions/checkout@v4
97+
98+
# - name: Dependencies
99+
# run: |
100+
# brew tap dciabrin/ngdevkit
101+
# brew install python3 --overwrite
102+
# brew install automake ngdevkit-toolchain zip pkg-config sdl2 sdl2_image
103+
# $(brew --prefix python)/libexec/bin/pip install pygame --break-system-packages
104+
105+
# - name: Build
106+
# run: ./.github/scripts/build.sh
107+
108+
# - name: Install dependencies for ngdevkit-examples
109+
# run: |
110+
# brew install ngdevkit-gngeo imagemagick sox glew make
111+
# $(brew --prefix python)/libexec/bin/pip install pyyaml --break-system-packages
93112

94-
- name: Test by compiling ngdevkit-examples
95-
run: ./.github/scripts/test.sh
113+
# - name: Test by compiling ngdevkit-examples
114+
# run: ./.github/scripts/test.sh

0 commit comments

Comments
 (0)