Update ci specs
This commit is contained in:
48
.github/workflows/push.yml
vendored
48
.github/workflows/push.yml
vendored
@@ -5,32 +5,24 @@ on: [push, pull_request]
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
container:
|
||||||
|
image: alpine:3.15
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
model: ["TS100", "TS80", "TS80P", "Pinecil", "MHP30"]
|
model: ["TS100", "TS80", "TS80P", "Pinecil", "MHP30"]
|
||||||
fail-fast: true
|
fail-fast: true
|
||||||
|
|
||||||
steps:
|
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
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
submodules: true
|
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/cache@v2.1.7
|
|
||||||
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 }}
|
- name: build ${{ matrix.model }}
|
||||||
run: cd source && ./build.sh -m ${{ matrix.model }}
|
run: cd source && ./build.sh -m ${{ matrix.model }}
|
||||||
|
|
||||||
@@ -52,32 +44,23 @@ jobs:
|
|||||||
|
|
||||||
build_multi-lang:
|
build_multi-lang:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
container:
|
||||||
|
image: alpine:3.15
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
model: ["Pinecil"]
|
model: ["Pinecil"]
|
||||||
fail-fast: true
|
fail-fast: true
|
||||||
|
|
||||||
steps:
|
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
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
submodules: true
|
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/cache@v2.1.7
|
|
||||||
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 }}
|
- 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
|
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
|
- 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
|
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
|
- name: Check formatting with clang-format
|
||||||
run: cd source && make clean && make check-style
|
run: cd source && make clean && make check-style
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user