mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[CI] [Simulator] Fix CI building (#381)
* [CI] Install more dependencies * [Simulator] Some upgrades * [CI] Fix Metrics * Re-add newlines
This commit is contained in:
9
.github/workflows/ci-workflow.yml
vendored
9
.github/workflows/ci-workflow.yml
vendored
@@ -27,7 +27,7 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install curl git python3 build-essential cmake pkg-config -y
|
sudo apt-get install build-essential cmake libfreetype-dev -y
|
||||||
- name: Get latest gint commit hash
|
- name: Get latest gint commit hash
|
||||||
run: |
|
run: |
|
||||||
LATEST_COMMIT_HASH=$(curl --silent https://git.planet-casio.com/api/v1/repos/Lephenixnoir/gint/branches/master | jq -r .commit.id)
|
LATEST_COMMIT_HASH=$(curl --silent https://git.planet-casio.com/api/v1/repos/Lephenixnoir/gint/branches/master | jq -r .commit.id)
|
||||||
@@ -108,6 +108,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: 'recursive'
|
submodules: 'recursive'
|
||||||
|
- run: sudo apt-get install imagemagick libfreetype-dev libpng-dev
|
||||||
- name: Set up JDK 21
|
- name: Set up JDK 21
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
@@ -223,8 +224,7 @@ jobs:
|
|||||||
bootloader:
|
bootloader:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
# - run: sudo apt-get install build-essential imagemagick libfreetype6-dev libjpeg-dev libpng-dev pkg-config gcc-arm-none-eabi
|
- run: sudo apt-get install build-essential imagemagick libfreetype6-dev libjpeg-dev libpng-dev pkg-config # gcc-arm-none-eabi
|
||||||
- run: sudo apt-get install build-essential imagemagick libfreetype6-dev libjpeg-dev libpng-dev pkg-config
|
|
||||||
- uses: numworks/setup-arm-toolchain@2022-08
|
- uses: numworks/setup-arm-toolchain@2022-08
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
@@ -298,6 +298,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: 'recursive'
|
submodules: 'recursive'
|
||||||
|
- run: sudo apt-get install libfreetype-dev libpng-dev
|
||||||
- run: make -j2 PLATFORM=simulator TARGET=web
|
- run: make -j2 PLATFORM=simulator TARGET=web
|
||||||
- run: make -j2 PLATFORM=simulator TARGET=web test.js
|
- run: make -j2 PLATFORM=simulator TARGET=web test.js
|
||||||
- run: node output/release/simulator/web/test.js --headless
|
- run: node output/release/simulator/web/test.js --headless
|
||||||
@@ -347,6 +348,7 @@ jobs:
|
|||||||
if: github.event.inputs.triggerMacos == 'yes' || github.event.inputs.triggerMacos == ''
|
if: github.event.inputs.triggerMacos == 'yes' || github.event.inputs.triggerMacos == ''
|
||||||
runs-on: macOS-latest
|
runs-on: macOS-latest
|
||||||
steps:
|
steps:
|
||||||
|
- run: brew install python-setuptools
|
||||||
- run: brew install numworks/tap/epsilon-sdk
|
- run: brew install numworks/tap/epsilon-sdk
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
@@ -362,6 +364,7 @@ jobs:
|
|||||||
if: github.event.inputs.triggerIos == 'yes' || github.event.inputs.triggerIos == ''
|
if: github.event.inputs.triggerIos == 'yes' || github.event.inputs.triggerIos == ''
|
||||||
runs-on: macOS-latest
|
runs-on: macOS-latest
|
||||||
steps:
|
steps:
|
||||||
|
- run: brew install python-setuptools
|
||||||
- run: brew install numworks/tap/epsilon-sdk
|
- run: brew install numworks/tap/epsilon-sdk
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
|||||||
4
.github/workflows/metric-workflow.yml
vendored
4
.github/workflows/metric-workflow.yml
vendored
@@ -27,12 +27,12 @@ jobs:
|
|||||||
run: make -j2 -C head MODEL=n0110 epsilon.elf
|
run: make -j2 -C head MODEL=n0110 epsilon.elf
|
||||||
- name: Retrieve binary size analysis
|
- name: Retrieve binary size analysis
|
||||||
id: binary_size
|
id: binary_size
|
||||||
run: echo "::set-output name=table::$(python3 head/build/metrics/binary_size.py base/output/release/device/n0110/epsilon.elf head/output/release/device/n0110/epsilon.elf --labels Base Head --sections .text .rodata .bss .data --custom 'Total (RAM)' .data .bss --custom 'Total (ROM)' .text .rodata .data --escape)"
|
run: echo "table=$(python3 head/build/metrics/binary_size.py base/output/release/device/n0110/epsilon.elf head/output/release/device/n0110/epsilon.elf --labels Base Head --sections .text .rodata .bss .data --custom 'Total (RAM)' .data .bss --custom 'Total (ROM)' .text .rodata .data --escape)" >> $GITHUB_OUTPUT
|
||||||
- name: Add comment
|
- name: Add comment
|
||||||
uses: actions/github-script@v7
|
uses: actions/github-script@v7
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
await github.issues.createComment({
|
await github.rest.issues.createComment({
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
issue_number: context.payload.pull_request.number,
|
issue_number: context.payload.pull_request.number,
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ apk_deps += $(addprefix $(BUILD_DIR)/app/res/,mipmap/ic_launcher.png mipmap-v26/
|
|||||||
|
|
||||||
$(BUILD_DIR)/%.apk: $(apk_deps)
|
$(BUILD_DIR)/%.apk: $(apk_deps)
|
||||||
$(call rule_label,GRADLE)
|
$(call rule_label,GRADLE)
|
||||||
$(Q) ANDROID_HOME=$(ANDROID_HOME) UPSILON_VERSION=$(UPSILON_VERSION) BUILD_DIR=$(BUILD_DIR) EPSILON_VARIANT=$* ion/src/simulator/android/gradlew -p ion/src/simulator/android assembleRelease
|
$(Q) ANDROID_HOME=$(ANDROID_HOME) UPSILON_VERSION=$(UPSILON_VERSION) BUILD_DIR=$(BUILD_DIR) EPSILON_VARIANT=$* ion/src/simulator/android/gradlew -p ion/src/simulator/android assembleRelease --warning-mode all
|
||||||
$(Q) cp $(BUILD_DIR)/app/outputs/apk/release/android-release*.apk $@
|
$(Q) cp $(BUILD_DIR)/app/outputs/apk/release/android-release*.apk $@
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ buildscript {
|
|||||||
google()
|
google()
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:8.7.1'
|
classpath 'com.android.tools.build:gradle:8.8.1'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -54,9 +54,9 @@ android {
|
|||||||
minifyEnabled false
|
minifyEnabled false
|
||||||
proguardFiles getDefaultProguardFile('proguard-android.txt')
|
proguardFiles getDefaultProguardFile('proguard-android.txt')
|
||||||
if (projectVariable('SIGNING_STORE_FILE')) {
|
if (projectVariable('SIGNING_STORE_FILE')) {
|
||||||
signingConfig signingConfigs.environment
|
signingConfig = signingConfigs.environment
|
||||||
} else {
|
} else {
|
||||||
signingConfig signingConfigs.debug
|
signingConfig = signingConfigs.debug
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -70,15 +70,15 @@ android {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
lintOptions {
|
lintOptions {
|
||||||
abortOnError false
|
abortOnError = false
|
||||||
checkReleaseBuilds false
|
checkReleaseBuilds = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
||||||
implementation "androidx.appcompat:appcompat:1.7.0"
|
implementation "androidx.appcompat:appcompat:1.7.0"
|
||||||
implementation(platform("org.jetbrains.kotlin:kotlin-bom:2.0.21"))
|
implementation(platform("org.jetbrains.kotlin:kotlin-bom:2.1.10"))
|
||||||
}
|
}
|
||||||
|
|
||||||
java{toolchain{languageVersion=JavaLanguageVersion.of(21)}}
|
java{toolchain{languageVersion=JavaLanguageVersion.of(21)}}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12.1-bin.zip
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
|
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ SIMULATOR_ICONS = $(addprefix $(SIMULATOR_ICONSET)/,$(addsuffix .png,$(addprefix
|
|||||||
|
|
||||||
$(addprefix $(SIMULATOR_ICONSET)/,icon_%.png): ion/src/simulator/assets/logoMacOS.png | $$(@D)/.
|
$(addprefix $(SIMULATOR_ICONSET)/,icon_%.png): ion/src/simulator/assets/logoMacOS.png | $$(@D)/.
|
||||||
$(call rule_label,CONVERT)
|
$(call rule_label,CONVERT)
|
||||||
$(Q) convert -background "#FFB734" -resize $* $< $@
|
$(Q) magick $< -background "#FFB734" -resize $* $@
|
||||||
|
|
||||||
# Export simulator app dependencies
|
# Export simulator app dependencies
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user