Files
ESP_Init/.gitea/workflows/build.yaml
2024-09-17 23:18:26 +00:00

42 lines
1.1 KiB
YAML

name: Build
run-name: Build bin
on: [ push ]
env:
name: ${{ github.ref_name }}@${{ GITHUB_RUN_NUMBER }}
jobs:
Build:
runs-on: ubuntu-latest
steps:
- name: Get code
uses: actions/checkout@v4
- name: init
run: |
mkdir ~/esp && tar xf ESP8266_RTOS_SDK.tar.gz -C ~/esp
- name: install
run: |
~/esp/ESP8266_RTOS_SDK/install.sh
- name: make
run: |
. ~/esp/ESP8266_RTOS_SDK/export.sh && make
- name: make_bin
run: |
bash bin.sh
- run: echo "🍏 ${{ github.ref_name }}@V${{ github.RUN_NUMBER }}."
- name: Use Go Action
id: use-go-action
uses: akkuman/gitea-release-action@v1
env:
NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18
with:
name: ${{ github.ref_name }}@V${{ github.RUN_NUMBER }}
tag_name: ${{ github.ref_name }}@V${{ github.RUN_NUMBER }}
# body: ${{ github.head_ref }}
# prerelease: true
md5sum: true
sha256sum: true
files: |-
ESP8266_RTOS_firmware.bin