Skip to content

Commit 4ec9c76

Browse files
committed
updates the git workflow
1 parent 7e43996 commit 4ec9c76

File tree

3 files changed

+41
-69
lines changed

3 files changed

+41
-69
lines changed

.github/workflows/macOS.yml

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,34 +7,23 @@ on:
77
jobs:
88
build:
99
if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}
10-
name: Build ${{ matrix.port }} port
1110
runs-on: macos-latest
12-
continue-on-error: true
13-
strategy:
14-
matrix:
15-
port: ['macOS', 'esp32', 'stm32', 'rp2']
11+
1612
steps:
1713
- uses: actions/checkout@v4
1814
- uses: ammaraskar/gcc-problem-matcher@master
15+
1916
- name: Install Dependencies
2017
run: brew install --force gcc libffi cmake ninja make
21-
# STM32 & RPi Pico port
22-
- name: arm-none-eabi-gcc
23-
if: matrix.port == 'stm32' || matrix.port == 'rp2'
24-
uses: carlosperate/[email protected]
25-
with:
26-
release: '9-2019-q4' # The arm-none-eabi-gcc release to use.
18+
19+
- name: Build macOS port
20+
run: python3 make.py macOS submodules clean mpy_cross DISPLAY=sdl_display INDEV=sdl_pointer
21+
22+
- name: Build ESP32 port
23+
run: python3 make.py esp32 submodules clean mpy_cross BOARD=ESP32_GENERIC_S3 BOARD_VARIANT=SPIRAM_OCT DISPLAY=rgb_display INDEV=gt911
24+
2725
- name: Build STM32 port
28-
if: matrix.port == 'stm32'
2926
run: python3 make.py stm32 submodules clean mpy_cross BOARD=STM32F7DISC DISPLAY=rgb_display INDEV=gt911
27+
3028
- name: Build Raspberry Pi PICO port
31-
if: matrix.port == 'rp2'
3229
run: python3 make.py rp2 submodules clean mpy_cross BOARD=RPI_PICO DISPLAY=rgb_display INDEV=gt911
33-
- name: Build ESP32 port
34-
if: matrix.port == 'esp32'
35-
run: python3 make.py esp32 submodules clean mpy_cross BOARD=ESP32_GENERIC_S3 BOARD_VARIANT=SPIRAM_OCT DISPLAY=rgb_display INDEV=gt911
36-
# macOS port
37-
- name: Build macOS port
38-
if: matrix.port == 'macOS'
39-
run: python3 make.py macOS submodules clean mpy_cross DISPLAY=sdl_display INDEV=sdl_pointer
40-

.github/workflows/unix.yml

Lines changed: 16 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -7,38 +7,28 @@ on:
77
jobs:
88
build:
99
if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}
10-
name: Build ${{ matrix.port }} port
1110
runs-on: ubuntu-latest
12-
continue-on-error: true
13-
strategy:
14-
matrix:
15-
port: ['unix', 'esp32', 'stm32', 'rp2']
11+
1612
steps:
1713
- uses: actions/checkout@v4
1814
- uses: ammaraskar/gcc-problem-matcher@master
19-
- name: Install Dependencies
20-
run: |
21-
sudo add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu `lsb_release -sc` main universe restricted multiverse"
22-
sudo apt-get update -y -qq
23-
sudo apt-get install --force-yes -y build-essential libffi-dev pkg-config cmake ninja-build gnome-desktop-testing libasound2-dev libpulse-dev libaudio-dev libjack-dev libsndio-dev libx11-dev libxext-dev libxrandr-dev libxcursor-dev libxfixes-dev libxi-dev libxss-dev libxkbcommon-dev libdrm-dev libgbm-dev libgl1-mesa-dev libgles2-mesa-dev libegl1-mesa-dev libdbus-1-dev libibus-1.0-dev libudev-dev fcitx-libs-dev libpipewire-0.3-dev libwayland-dev libdecor-0-dev
24-
25-
# STM32 & RPi Pico port
26-
- name: arm-none-eabi-gcc
27-
if: matrix.port == 'stm32' || matrix.port == 'rp2'
28-
uses: carlosperate/[email protected]
29-
with:
30-
release: '9-2019-q4' # The arm-none-eabi-gcc release to use.
15+
16+
- name: Install Deps
17+
sudo apt-get install --force-yes -y build-essential pkg-config cmake ninja-build libffi-dev gnome-desktop-testing libasound2-dev libpulse-dev libaudio-dev libjack-dev libsndio-dev libx11-dev libxext-dev libxrandr-dev libxcursor-dev libxfixes-dev libxi-dev libxss-dev libxkbcommon-dev libdrm-dev libgbm-dev libgl1-mesa-dev libgles2-mesa-dev libegl1-mesa-dev libdbus-1-dev libibus-1.0-dev libudev-dev fcitx-libs-dev libpipewire-0.3-dev libwayland-dev libdecor-0-dev
18+
19+
- name: Build Unix port
20+
run: python3 make.py unix submodules clean mpy_cross DISPLAY=sdl_display INDEV=sdl_pointer
21+
22+
- name: Build ESP32 port
23+
run: python3 make.py esp32 submodules clean mpy_cross BOARD=ESP32_GENERIC_S3 BOARD_VARIANT=SPIRAM_OCT DISPLAY=rgb_display INDEV=gt911
24+
3125
- name: Build STM32 port
32-
if: matrix.port == 'stm32'
3326
run: python3 make.py stm32 submodules clean mpy_cross BOARD=STM32F7DISC DISPLAY=rgb_display INDEV=gt911
27+
3428
- name: Build Raspberry Pi PICO port
35-
if: matrix.port == 'rp2'
3629
run: python3 make.py rp2 submodules clean mpy_cross BOARD=RPI_PICO DISPLAY=rgb_display INDEV=gt911
37-
- name: Build ESP32 port
38-
if: matrix.port == 'esp32'
39-
run: python3 make.py esp32 submodules clean mpy_cross BOARD=ESP32_GENERIC_S3 BOARD_VARIANT=SPIRAM_OCT DISPLAY=rgb_display INDEV=gt911
40-
# Unix port
41-
- name: Build Unix port
42-
if: matrix.port == 'unix'
43-
run: python3 make.py unix submodules clean mpy_cross DISPLAY=sdl_display INDEV=sdl_pointer
30+
31+
32+
33+
4434

.github/workflows/windows.yml

Lines changed: 15 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -7,33 +7,26 @@ on:
77
jobs:
88
build:
99
if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}
10-
name: Build ${{ matrix.port }} port
1110
runs-on: windows-latest
12-
continue-on-error: true
13-
strategy:
14-
matrix:
15-
port: ['windows', 'esp32', 'stm32', 'rp2']
11+
1612
steps:
1713
- uses: actions/checkout@v4
18-
- uses: ammaraskar/gcc-problem-matcher@master
14+
1915
- name: Install Dependencies
20-
run: python3 -m pip install pyMSVC
21-
# STM32 & RPi Pico port
22-
- name: arm-none-eabi-gcc
23-
if: matrix.port == 'stm32' || matrix.port == 'rp2'
24-
uses: carlosperate/[email protected]
25-
with:
26-
release: '9-2019-q4' # The arm-none-eabi-gcc release to use.
16+
run: |
17+
choco install make
18+
python3 -m pip install pyMSVC
19+
20+
- name: Build Windows port
21+
run: python3 make.py windows submodules clean mpy_cross DISPLAY=sdl_display INDEV=sdl_pointer
22+
23+
- name: Build ESP32 port
24+
run: python3 make.py esp32 submodules clean mpy_cross BOARD=ESP32_GENERIC_S3 BOARD_VARIANT=SPIRAM_OCT DISPLAY=rgb_display INDEV=gt911
25+
2726
- name: Build STM32 port
28-
if: matrix.port == 'stm32'
2927
run: python3 make.py stm32 submodules clean mpy_cross BOARD=STM32F7DISC DISPLAY=rgb_display INDEV=gt911
28+
3029
- name: Build Raspberry Pi PICO port
31-
if: matrix.port == 'rp2'
3230
run: python3 make.py rp2 submodules clean mpy_cross BOARD=RPI_PICO DISPLAY=rgb_display INDEV=gt911
33-
- name: Build ESP32 port
34-
if: matrix.port == 'esp32'
35-
run: python3 make.py esp32 submodules clean mpy_cross BOARD=ESP32_GENERIC_S3 BOARD_VARIANT=SPIRAM_OCT DISPLAY=rgb_display INDEV=gt911
36-
# windows port
37-
- name: Build Windows port
38-
if: matrix.port == 'windows'
39-
run: python3 make.py windows submodules clean mpy_cross DISPLAY=sdl_display INDEV=sdl_pointer
31+
32+

0 commit comments

Comments
 (0)