Skip to content

Changed flash cmd to a script #143

Changed flash cmd to a script

Changed flash cmd to a script #143

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
name: Java CI with Gradle
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
ACCEPT_MICROEJ_SDK_EULA_V3_1B: YES
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
- name: Build image
run: docker build --pull --rm -f 'Dockerfile' -t 'examplejavawidget:latest' '.'
- name: Build executable
run: docker run --rm --volume ./build:/home/build/workspace/build --mac-address="C8:4B:D6:5C:C0:07" --name="build" examplejavawidget
- name: Remove tmp folder
run: sudo rm -r ./build/tmp
- uses: actions/upload-artifact@v4
with:
name: build-artifact
path: |
./build
flash:
runs-on: self-hosted
needs: build
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: build-artifact
path: ./build
- name: Flash on board
run: ./scripts/flash.bat
shell: cmd