Skip to content

Commit

Permalink
try to add gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
hathach committed Dec 12, 2023
1 parent dffbd44 commit fee5612
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build

on:
workflow_dispatch:
push:
pull_request:
branches: [ master ]

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
build-esp:
runs-on: ubuntu-latest
steps:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Pull ESP-IDF docker
run: docker pull espressif/idf:v3.3.1

- name: Checkout
uses: actions/checkout@v3

- name: Build
run: docker run --rm -v $PWD:/project -w /project espressif/idf:v3.3.1 make firmware

- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: NINA_W102-${{ github.sha }}
path: |
NINA_W102*.bin

0 comments on commit fee5612

Please sign in to comment.