aboutsummaryrefslogtreecommitdiffhomepage
path: root/.github/workflows
diff options
context:
space:
mode:
authorIvan Zorin <[email protected]>2023-07-28 12:45:22 +0300
committerGitHub <[email protected]>2023-07-28 09:45:22 +0000
commit55d36c98f1bb1de2c0cdce9008f5c2de9e2630ef (patch)
tree0843db140a28d83aa12b17c4b69a753ca37e9b15 /.github/workflows
parent65ac2e25a6c9515142100377b3009e6d7dcf9150 (diff)
downloadIronOS-55d36c98f1bb1de2c0cdce9008f5c2de9e2630ef.tar.gz
IronOS-55d36c98f1bb1de2c0cdce9008f5c2de9e2630ef.zip
Simplify commands for jobs in push.yml (#1761)
* Simplify commands for build steps * Fixing multi-lang builds for Pinecil & PinecilV2 * Makefile: fix multi-thread building support * source/Makefile: fix formatting --------- Co-authored-by: Ben V. Brown <[email protected]>
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/push.yml25
1 files changed, 8 insertions, 17 deletions
diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml
index 639ecc9c..f8145858 100644
--- a/.github/workflows/push.yml
+++ b/.github/workflows/push.yml
@@ -30,9 +30,7 @@ jobs:
run: cd source && ./build.sh -m ${{ matrix.model }}
- name: Copy license files
- run: |
- cp LICENSE source/Hexfile/LICENSE
- cp scripts/LICENSE_RELEASE.md source/Hexfile/LICENSE_RELEASE.md
+ run: cp LICENSE scripts/LICENSE_RELEASE.md source/Hexfile/
- name: Archive ${{ matrix.model }} artifacts
uses: actions/upload-artifact@v3
@@ -47,7 +45,7 @@ jobs:
if-no-files-found: error
- name: Generate json index file
- run: cd source && python3 metadata.py ${{ matrix.model }}.json
+ run: ./source/metadata.py ${{ matrix.model }}.json
- name: Archive ${{ matrix.model }} index file
uses: actions/upload-artifact@v3
@@ -79,12 +77,10 @@ jobs:
run: git config --global --add safe.directory /__w/IronOS/IronOS && git config --global safe.directory "$GITHUB_WORKSPACE"
- 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: make -j$(nproc) model="${{ matrix.model }}" firmware-multi_compressed_European firmware-multi_compressed_Bulgarian+Russian+Serbian+Ukrainian firmware-multi_Chinese+Japanese
- name: Copy license files
- run: |
- cp LICENSE source/Hexfile/LICENSE
- cp scripts/LICENSE_RELEASE.md source/Hexfile/LICENSE_RELEASE.md
+ run: cp LICENSE scripts/LICENSE_RELEASE.md source/Hexfile/
- name: Archive ${{ matrix.model }} artifacts
uses: actions/upload-artifact@v3
@@ -99,7 +95,7 @@ jobs:
if-no-files-found: error
- name: Generate json index file
- run: cd source && python3 metadata.py ${{ matrix.model }}_multi-lang.json
+ run: ./source/metadata.py ${{ matrix.model }}_multi-lang.json
- name: Archive ${{ matrix.model }} index file
uses: actions/upload-artifact@v3
@@ -125,15 +121,10 @@ jobs:
run: python3 -m pip install bdflib
- name: Run python tests
- run: cd Translations && chmod +x make_translation_test.py && ./make_translation_test.py
+ run: ./Translations/make_translation_test.py
- name: Run BriefLZ tests
- run: |
- cd source
- make Objects/host/brieflz/libbrieflz.so
- cd ../Translations
- chmod +x brieflz_test.py
- ./brieflz_test.py
+ run: make -C source/ Objects/host/brieflz/libbrieflz.so && ./Translations/brieflz_test.py
check_c-cpp:
@@ -150,7 +141,7 @@ jobs:
submodules: true
- name: Check format style with clang-format
- run: cd source && make clean && make check-style
+ run: make clean check-style
check_python: