Skip to content

Commit

Permalink
Fixing CI
Browse files Browse the repository at this point in the history
  • Loading branch information
akasaka committed Oct 20, 2024
1 parent 7199dbb commit fab5237
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 21 deletions.
20 changes: 0 additions & 20 deletions .github/actions/prepare_pio.yml

This file was deleted.

19 changes: 19 additions & 0 deletions .github/actions/prepare_pio/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Prepare PIO environment

on: [workflow_call]

runs:
using: "composite"
steps:
- uses: actions/cache@v4
with:
path: |
~/.cache/pip
~/.platformio/.cache
key: pisos-pio
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install PlatformIO Core
shell: bash
run: pip install --upgrade platformio
8 changes: 7 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build production version

on:
push:
branches: [main]
branches: [main, develop]

jobs:
build-everything:
Expand All @@ -15,6 +15,12 @@ jobs:
fetch-depth: 0
- name: Prepare environment
uses: ./.github/actions/prepare_pio
- name: Download AquesTalk
run: |
wget https://www.a-quest.com/archive/package/aquestalk-esp32_0243.zip -O /tmp/aquestalk.zip
unzip /tmp/aquestalk.zip -d /tmp
mv /tmp/aquestalk-esp32/src/esp32/libaquestalk.a ./lib/nonfree-aquestalk/libaquestalk.a
mv /tmp/aquestalk-esp32/src/aquestalk.h ./lib/nonfree-aquestalk/aquestalk.h
- name: Build all targets
run: pio run
continue-on-error: true # TODO make this more graceful
Expand Down

0 comments on commit fab5237

Please sign in to comment.