Update compilers (#1858)

* Update Alpine Image

* Update push.yml

* Style updates
This commit is contained in:
Ben V. Brown
2023-12-26 19:54:47 +11:00
committed by GitHub
parent 9931afdb0f
commit 849d1f7d40
9 changed files with 40 additions and 39 deletions

View File

@@ -3,23 +3,31 @@ name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-20.04
container:
image: alpine:3.16
image: alpine:3.19
strategy:
matrix:
model: ["TS100", "TS80", "TS80P", "Pinecil", "MHP30", "Pinecilv2", "S60", "TS101"]
model:
[
"TS100",
"TS80",
"TS80P",
"Pinecil",
"MHP30",
"Pinecilv2",
"S60",
"TS101",
]
fail-fast: true
steps:
- name: Install dependencies (apk)
run: apk add --no-cache gcc-riscv-none-elf gcc-arm-none-eabi newlib-riscv-none-elf newlib-arm-none-eabi findutils python3 py3-pip make git bash
run: apk add --no-cache gcc-riscv-none-elf g++-riscv-none-elf gcc-arm-none-eabi g++-arm-none-eabi newlib-riscv-none-elf newlib-arm-none-eabi findutils python3 py3-pip make git bash
- name: Install dependencies (python)
run: python3 -m pip install bdflib
run: python3 -m pip install --break-system-packages bdflib
- uses: actions/checkout@v4
with:
@@ -58,11 +66,10 @@ jobs:
name: metadata
path: source/Hexfile/${{ matrix.model }}.json
build_multi-lang:
runs-on: ubuntu-20.04
container:
image: alpine:3.16
image: alpine:3.19
strategy:
matrix:
model: ["Pinecil", "Pinecilv2"]
@@ -70,9 +77,9 @@ jobs:
steps:
- name: Install dependencies (apk)
run: apk add --no-cache gcc-riscv-none-elf newlib-riscv-none-elf findutils python3 py3-pip make git bash musl-dev
run: apk add --no-cache gcc-riscv-none-elf g++-riscv-none-elf gcc-arm-none-eabi g++-arm-none-eabi newlib-riscv-none-elf newlib-arm-none-eabi findutils python3 py3-pip make git bash musl-dev
- name: Install dependencies (python)
run: python3 -m pip install bdflib
run: python3 -m pip install --break-system-packages bdflib
- uses: actions/checkout@v4
with:
@@ -111,11 +118,10 @@ jobs:
name: metadata
path: source/Hexfile/${{ matrix.model }}_multi-lang.json
tests:
runs-on: ubuntu-20.04
container:
image: alpine:3.16
image: alpine:3.19
steps:
- name: Install dependencies (apk)
@@ -126,7 +132,7 @@ jobs:
submodules: true
- name: Install dependencies (python)
run: python3 -m pip install bdflib
run: python3 -m pip install --break-system-packages bdflib
- name: Run python tests
run: ./Translations/make_translation_test.py
@@ -134,11 +140,10 @@ jobs:
- name: Run BriefLZ tests
run: make -C source/ Objects/host/brieflz/libbrieflz.so && ./Translations/brieflz_test.py
check_c-cpp:
runs-on: ubuntu-20.04
container:
image: alpine:3.16
image: alpine:3.19
steps:
- name: Install dependencies (apk)
@@ -151,11 +156,10 @@ jobs:
- name: Check format style with clang-format
run: make clean check-style
check_python:
runs-on: ubuntu-20.04
container:
image: alpine:3.16
image: alpine:3.19
steps:
- name: Install dependencies (apk)
@@ -166,7 +170,7 @@ jobs:
submodules: true
- name: Install dependencies (python)
run: python3 -m pip install bdflib flake8
run: python3 -m pip install --break-system-packages bdflib flake8
- name: Check python formatting with black
run: black --check Translations
@@ -174,7 +178,6 @@ jobs:
- name: Check python with flake8
run: flake8 Translations
check_shell:
name: check_shell
runs-on: ubuntu-latest
@@ -188,11 +191,10 @@ jobs:
exclude: "./.git/*" # Optional.
check_all_files_with_shebangs: "false" # Optional.
check_readme:
runs-on: ubuntu-20.04
container:
image: alpine:3.16
image: alpine:3.19
steps:
- name: Install dependencies (apk)