improve: adc avg calc structure #15
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
tags: | |
- v* | |
jobs: | |
build-firmware: | |
uses: ./.github/workflows/firmware.yml | |
build-pcb: | |
uses: ./.github/workflows/kicad.yml | |
build-native: | |
uses: ./.github/workflows/native.yml | |
build-html: | |
uses: ./.github/workflows/web-bundle.yml | |
deploy-web: | |
uses: ./.github/workflows/web.yml | |
release: | |
name: release | |
runs-on: ubuntu-latest | |
needs: [build-firmware, build-pcb, build-native, build-html] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/download-artifact@v4 | |
- run: | | |
zip -r fsk-energymeter-firmware-${{ github.ref_name }}.zip fsk-energymeter-firmware | |
(cd build.fsk-energymeter-macos-arm64 && zip -r ../fsk-energymeter-macos-arm64-${{ github.ref_name }}.app.zip .) | |
mv build.fsk-energymeter-windows-x64/fsk-energymeter.exe fsk-energymeter-windows-x64-${{ github.ref_name }}.exe | |
mv build.fsk-energymeter-linux-x64/fsk-energymeter*.AppImage fsk-energymeter-linux-x64-${{ github.ref_name }}.AppImage | |
zip -r fsk-energymeter-pcb-${{ github.ref_name }}.zip fsk-energymeter-pcb | |
mv html/fsk-energymeter.html fsk-energymeter-${{ github.ref_name }}.html | |
- uses: ncipollo/release-action@v1 | |
with: | |
allowUpdates: true | |
artifacts: | | |
fsk-energymeter-firmware-*.zip | |
fsk-energymeter-pcb-*.zip | |
fsk-energymeter-windows-x64-* | |
fsk-energymeter-macos-arm64-* | |
fsk-energymeter-linux-x64-* | |
fsk-energymeter-*.html | |
commit: ${{ github.sha }} | |
tag: ${{ github.ref_name }} | |
body: | | |
### Firmware | |
Use the [STM32CubeProgrammer](https://www.st.com/en/development-tools/stm32cubeprog.html) with the [ST-Link](https://smartstore.naver.com/misoparts/products/5263743411) to upload the firmware ELF to the device.\ | |
Make sure that the `Shared` option is set to `Enabled` in the ST-LINK configuration. | |
### FSK-EEM Viewer | |
#### Web | |
* https://fsk-energymeter.luftaquila.io | |
* `fsk-energymeter-${{ github.ref_name }}.html` | |
#### Windows | |
If the `Windows protected your PC` message appears, click <ins>More Info</ins> and click `Run anyway` to run the application. | |
#### MacOS | |
Run the following commands before open the application for the first time.\ | |
Otherwise, it will say `"fsk-energymeter" is damaged and can’t be opened.` because the packages are not signed. | |
```sh | |
unzip fsk-energymeter-macos-arm64-${{ github.ref_name }}.app.zip | |
xattr -c fsk-energymeter.app | |
chmod +x fsk-energymeter.app/Contents/MacOS/fsk-energymeter | |
``` | |
The Device Configuration tab is not supported in the native MacOS application and the Safari due to a lack of the WebSerial API.\ | |
Use the web version with the Chromium browser instead. ([Reference](https://caniuse.com/?search=Web%20Serial%20API)) | |
#### Linux | |
Run the following commands before open the application for the first time. | |
```sh | |
chmod u+x fsk-energymeter-linux-x64-${{ github.ref_name }}.AppImage | |
``` |