1- name : Build for Mystrix
1+ name : Build for Mystrix
22
33on :
44 push :
@@ -11,58 +11,38 @@ jobs:
1111 runs-on : ubuntu-latest
1212
1313 steps :
14- - name : Checkout Repo
15- uses : actions/checkout@v4
16-
17- - name : Cache Git modules
18- uses : actions/cache@v4
19- with :
20- path : |
21- .git/modules # Cache Git module data for submodules
22- lib # Cache your submodule directories if they are in 'lib'
23- espressif/idf:release-v5.3 # ESP IDF
24- key : ${{ runner.os }}-submodules-${{ hashFiles('.gitmodules') }}
25- restore-keys : |
26- ${{ runner.os }}-submodules-
27-
28- - name : Update git submodules
29- if : steps.cache-submodule.outputs.cache-hit != 'true'
14+ - name : Checkout Repository with Submodules
3015 uses : actions/checkout@v4
3116 with :
3217 submodules : recursive
33-
34- - name : Set up Python 3.10
35- uses : actions/setup-python@v5
36- with :
37- python-version : ' 3.10'
3818
39- - name : esp-idf setup
19+ - name : Build Matrix OS
4020 uses : espressif/esp-idf-ci-action@v1
4121 with :
42- esp_idf_version : release- v5.3
43- path : ' / '
44- target : esp32-s3
22+ esp_idf_version : v5.3.1
23+ target : esp32s3
24+ path : ' . '
4525 command : make DEVICE=Mystrix fullclean build-nightly uf2
46-
47- - name : Get the short commit hash
48- id : get_commit_hash
49- run : echo "COMMIT_HASH=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
50-
51- - name : Get the current date
52- id : get_date
53- run : echo "CURRENT_DATE=$(date +'%Y-%-m-%-d')" >> $GITHUB_ENV
54-
55- - name : Rename file using date and commit hash
26+
27+ - name : Get Commit Info
28+ id : commit_info
29+ run : |
30+ echo "COMMIT_HASH=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
31+ echo "CURRENT_DATE=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
32+
33+ - name : Rename UF2 File
5634 run : |
5735 OLD_FILENAME="build/Mystrix/MatrixOS-Mystrix.uf2"
5836 NEW_FILENAME="build/Mystrix/MatrixOS-Mystrix-nightly-${{ env.CURRENT_DATE }}-${{ env.COMMIT_HASH }}.uf2"
59- sudo mv "$OLD_FILENAME" "$NEW_FILENAME"
60- echo "Renamed $OLD_FILENAME to $NEW_FILENAME"
61- # Upload the artifact to the workflow run
62- echo "NEW_FILENAME=$NEW_FILENAME" >> $GITHUB_ENV # Make NEW_FILENAME available in the next steps
63-
64- - name : Upload Artifact
37+ sudo chown -R $(whoami):$(whoami) build/
38+ sudo chmod -R 755 build/
39+ cp "$OLD_FILENAME" "$NEW_FILENAME"
40+ echo "NEW_FILENAME=$NEW_FILENAME" >> $GITHUB_ENV
41+ echo "Renamed to: $NEW_FILENAME"
42+
43+ - name : Upload UF2 Artifact
6544 uses : actions/upload-artifact@v4
6645 with :
67- name : MatrixOS-Mystrix-nightly-${{ env.CURRENT_DATE }}-${{ env.COMMIT_HASH }} # Name of the artifact
46+ name : MatrixOS-Mystrix-nightly-${{ env.CURRENT_DATE }}-${{ env.COMMIT_HASH }}
6847 path : ${{ env.NEW_FILENAME }}
48+ if-no-files-found : error
0 commit comments