aboutsummaryrefslogtreecommitdiffhomepage
path: root/.github/workflows
diff options
context:
space:
mode:
authorBen V. Brown <[email protected]>2022-01-07 00:04:20 +1100
committerBen V. Brown <[email protected]>2022-01-07 00:16:11 +1100
commit724b0c49361e8a09e2b2100f29c72075823f1b75 (patch)
tree3f8cafdc9f77774ca091a27c84d070714c3a69c9 /.github/workflows
parent93de082b06f9317b14adf86f5e3fc982c1ace92b (diff)
downloadIronOS-724b0c49361e8a09e2b2100f29c72075823f1b75.tar.gz
IronOS-724b0c49361e8a09e2b2100f29c72075823f1b75.zip
Update ci specs
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/push.yml48
1 files changed, 16 insertions, 32 deletions
diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml
index 7c74d601..b77f4187 100644
--- a/.github/workflows/push.yml
+++ b/.github/workflows/push.yml
@@ -5,31 +5,23 @@ on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-20.04
+ container:
+ image: alpine:3.15
strategy:
matrix:
model: ["TS100", "TS80", "TS80P", "Pinecil", "MHP30"]
fail-fast: true
steps:
- - uses: actions/checkout@v2
- with:
- submodules: true
+ - 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
- - name: chmod
- run: chmod +x setup.sh && chmod +x source/build.sh && sudo mkdir -p /build/cache && sudo chmod -R 777 /build
+ - name: Install dependencies (python)
+ run: python3 -m pip install bdflib
- - name: Cached compiler source files
- uses: actions/[email protected]
- env:
- cache-name: cache-compilers
+ - uses: actions/checkout@v2
with:
- path: /build/cache
- key: ${{ runner.os }}-build-${{ env.cache-name }}
- restore-keys: |
- ${{ runner.os }}-
-
- - name: setup
- run: ./setup.sh
+ submodules: true
- name: build ${{ matrix.model }}
run: cd source && ./build.sh -m ${{ matrix.model }}
@@ -52,32 +44,23 @@ jobs:
build_multi-lang:
runs-on: ubuntu-20.04
+ container:
+ image: alpine:3.15
strategy:
matrix:
model: ["Pinecil"]
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
+ - name: Install dependencies (python)
+ run: python3 -m pip install bdflib
+
- uses: actions/checkout@v2
with:
submodules: true
- - name: chmod
- run: chmod +x setup.sh && chmod +x source/build.sh && sudo mkdir -p /build/cache && sudo chmod -R 777 /build
-
- - name: Cached compiler source files
- uses: actions/[email protected]
- env:
- cache-name: cache-compilers
- with:
- path: /build/cache
- key: ${{ runner.os }}-build-${{ env.cache-name }}
- restore-keys: |
- ${{ runner.os }}-
-
- - name: setup
- run: ./setup.sh
-
- name: build ${{ matrix.model }}
run: cd source && make -j$(nproc) model="${{ matrix.model }}" firmware-multi_compressed_European firmware-multi_compressed_Bulgarian+Russian+Serbian+Ukrainian firmware-multi_Chinese+Japanese
@@ -142,6 +125,7 @@ jobs:
- name: setup
run: sudo apt-get update && sudo apt-get install -y make clang git python3 python3-pip && python3 -m pip install bdflib black flake8
+
- name: Check formatting with clang-format
run: cd source && make clean && make check-style