forked from espressif/esp-bsp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request espressif#221 from XDanielPaul/master
ci: Add example building workflow for launchpad (BSP-378)
- Loading branch information
Showing
1 changed file
with
59 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: "ESP-IDF build examples to github pages (push)" | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
|
||
build: | ||
strategy: | ||
matrix: | ||
idf_ver: ["v5.1.1"] | ||
runs-on: ubuntu-latest | ||
container: espressif/idf:${{ matrix.idf_ver }} | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: 'recursive' | ||
|
||
- name: Action for building binaries and config.toml | ||
uses: espressif/idf-examples-launchpad-ci-action@v1.0 | ||
with: | ||
idf_version: ${{ matrix.idf_ver }} | ||
|
||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: built_files | ||
path: binaries/ | ||
|
||
deploy: | ||
needs: build | ||
|
||
permissions: | ||
pages: write | ||
id-token: write | ||
|
||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Download built files | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: built_files | ||
path: binaries/ | ||
|
||
- name: Upload built files to gh pages | ||
uses: actions/upload-pages-artifact@v2 | ||
with: | ||
path: binaries/ | ||
|
||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v2 |