Skip to content

Commit ca115c2

Browse files
authored
Merge pull request #50 from Tuchan/actions-fix
2 parents 4fd5925 + b6816f8 commit ca115c2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+86
-123
lines changed
Lines changed: 23 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build for Mystrix
1+
name: Build for Mystrix
22

33
on:
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

Applications/BrightnessControl/BrightnessControl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#pragma once
22

33
#include "MatrixOS.h"
4-
#include "ui/UI.h"
4+
#include "UI/UI.h"
55

66
class BrightnessControl : public UI {
77
public:

Applications/BrightnessControl/UI4pxFloat.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#pragma once
22
#include <cmath>
3-
#include "ui/UI.h"
3+
#include "UI/UI.h"
44

55
// TODO add negative support?
66
// Only 4x8 support right now

Applications/Companion/Companion.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Remember to include this header file in the UserApplications.h in the Applicatio
77

88
#include "MatrixOS.h"
99
#include "Application.h"
10-
#include "ui/UI.h"
10+
#include "UI/UI.h"
1111

1212

1313
class Companion : public Application {

Applications/CustomControlMap/CustomControlMap.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include "CustomControlMap.h"
2-
#include "ui/UI.h"
2+
#include "UI/UI.h"
33

44
void CustomControlMap::Setup(const vector<string>& args) {
55
LoadUADfromNVS();

Applications/CustomControlMap/UILayerControl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "MatrixOS.h"
22
#include "UAD.h"
3-
#include "ui/UI.h"
3+
#include "UI/UI.h"
44

55
class UILayerControl : public UIComponent {
66
public:

Applications/Dice/Dice.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include "Dice.h"
2-
#include "ui/UI.h" // Include the UI Framework
2+
#include "UI/UI.h" // Include the UI Framework
33

44
// Run once
55
void Dice::Setup(const vector<string>& args) {

Applications/Example/Example.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include "Example.h"
2-
#include "ui/UI.h" // Include the UI Framework
2+
#include "UI/UI.h" // Include the UI Framework
33

44
// Run once
55
void ExampleAPP::Setup(const vector<string>& args) {

Applications/Gamepad/UIDPad.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#pragma once
2-
#include "ui/UI.h"
2+
#include "UI/UI.h"
33

44
class UIDPad : public UIComponent {
55
public:

Applications/Gamepad/UIGamepadAxis.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#pragma once
2-
#include "ui/UI.h"
2+
#include "UI/UI.h"
33

44
enum GamepadAxis {
55
GAMEPAD_AXIS_LEFT_X = 0,

0 commit comments

Comments
 (0)