mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[Fix] Fix conflicts ._.
This commit is contained in:
32
.github/workflows/ci-workflow.yml
vendored
32
.github/workflows/ci-workflow.yml
vendored
@@ -2,18 +2,20 @@ name: Continuous integration
|
||||
on: [pull_request, push]
|
||||
|
||||
jobs:
|
||||
build-simulator-android:
|
||||
android:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
with:
|
||||
submodules: true
|
||||
- run: make -j2 PLATFORM=simulator TARGET=android
|
||||
- run: make -j2 PLATFORM=simulator TARGET=android epsilon.official.apk
|
||||
- run: make -j2 PLATFORM=simulator TARGET=android test.apk
|
||||
- uses: actions/upload-artifact@master
|
||||
with:
|
||||
name: epsilon-simulator-android.apk
|
||||
path: output/release/simulator/android/app/outputs/apk/release/android-release-unsigned.apk
|
||||
build-device-n0100:
|
||||
name: epsilon-android.apk
|
||||
path: output/release/simulator/android/epsilon.apk
|
||||
n0100:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: sudo apt-get install build-essential imagemagick libfreetype6-dev libjpeg-dev libpng-dev pkg-config
|
||||
@@ -27,12 +29,12 @@ jobs:
|
||||
- run: make -j2 MODEL=n0100 epsilon.onboarding.beta.dfu
|
||||
- run: make -j2 MODEL=n0100 flasher.light.dfu
|
||||
- run: make -j2 MODEL=n0100 flasher.verbose.dfu
|
||||
- run: make -j2 MODEL=n0100 test.elf
|
||||
- uses: actions/upload-artifact@master
|
||||
with:
|
||||
name: epsilon-device-n0100.dfu
|
||||
name: epsilon-n0100.dfu
|
||||
path: output/release/device/n0100/epsilon.dfu
|
||||
- run: make -j2 MODEL=n0100 test.elf
|
||||
build-device-n0110:
|
||||
n0110:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: sudo apt-get install build-essential imagemagick libfreetype6-dev libjpeg-dev libpng-dev pkg-config
|
||||
@@ -48,12 +50,12 @@ jobs:
|
||||
- run: make -j2 flasher.verbose.dfu
|
||||
- run: make -j2 bench.ram.dfu
|
||||
- run: make -j2 bench.flash.dfu
|
||||
- run: make -j2 test.elf
|
||||
- uses: actions/upload-artifact@master
|
||||
with:
|
||||
name: epsilon-device-n0110.dfu
|
||||
name: epsilon-n0110.dfu
|
||||
path: output/release/device/n0110/epsilon.dfu
|
||||
- run: make -j2 test.elf
|
||||
build-simulator-web:
|
||||
web:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: numworks/setup-emscripten@v1
|
||||
@@ -65,10 +67,9 @@ jobs:
|
||||
- run: make -j2 PLATFORM=simulator TARGET=web
|
||||
- uses: actions/upload-artifact@master
|
||||
with:
|
||||
name: epsilon-simulator-web.zip
|
||||
name: epsilon-web.zip
|
||||
path: output/release/simulator/web/epsilon.zip
|
||||
- run: make -j2 PLATFORM=simulator TARGET=web test.headless.js
|
||||
build-simulator-linux:
|
||||
linux:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: sudo apt-get install build-essential imagemagick libfreetype6-dev libjpeg-dev libpng-dev pkg-config
|
||||
@@ -76,8 +77,11 @@ jobs:
|
||||
with:
|
||||
submodules: true
|
||||
- run: make -j2 PLATFORM=simulator
|
||||
- run: make -j2 PLATFORM=simulator epsilon.official.bin
|
||||
- run: make -j2 PLATFORM=simulator test.headless.bin
|
||||
- run: output/release/simulator/linux/test.headless.bin
|
||||
- uses: actions/upload-artifact@master
|
||||
with:
|
||||
name: epsilon-simulator-linux.bin
|
||||
name: epsilon-linux.bin
|
||||
path: output/release/simulator/linux/epsilon.bin
|
||||
- run: make -j2 PLATFORM=simulator test.headless.bin
|
||||
|
||||
36
.github/workflows/metrics-workflow.yml
vendored
Normal file
36
.github/workflows/metrics-workflow.yml
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
name: Metrics
|
||||
on: [pull_request]
|
||||
|
||||
jobs:
|
||||
binary-size:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Install dependencies
|
||||
run: sudo apt-get install build-essential imagemagick libfreetype6-dev libjpeg-dev libpng-dev pkg-config
|
||||
- name: Install ARM toolchain
|
||||
uses: numworks/setup-arm-toolchain@v1
|
||||
- name: Checkout PR base
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.base.sha }}
|
||||
path: base
|
||||
- name: Build base
|
||||
run: make -j2 -C base epsilon.elf
|
||||
- name: Checkout PR head
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
path: head
|
||||
- name: Build head
|
||||
run: make -j2 -C head epsilon.elf
|
||||
- name: Retrieve binary size analysis
|
||||
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 --escape)"
|
||||
- name: Prepare comment auth
|
||||
run: echo "::set-env name=GITHUB_TOKEN::$(echo ZGExNWM1YzNlMjVkMWU5ZGFmOWQyY2UxMmRhYjJiN2ZhMWM4ODVhMA== | base64 --decode)"
|
||||
- name: Add comment
|
||||
uses: actions/github@v1.0.0
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ env.GITHUB_TOKEN }}
|
||||
with:
|
||||
args: comment ${{ steps.binary_size.outputs.table }}
|
||||
Reference in New Issue
Block a user