-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
akasaka
committed
Oct 20, 2024
1 parent
7199dbb
commit c7e80a3
Showing
6 changed files
with
48 additions
and
29 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
This file was deleted.
Oops, something went wrong.
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,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 |
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
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 |
---|---|---|
@@ -1,8 +1,12 @@ | ||
from os.path import isfile | ||
from os.path import isfile, join, abspath | ||
from os import getcwd | ||
Import("env") | ||
|
||
if isfile("./lib/nonfree-aquestalk/libaquestalk.a"): | ||
print("Found a copy of AquesTalk") | ||
env.Append(BUILD_FLAGS=["-LD:lib/nonfree-aquestalk", "-laquestalk", "-DLIBAQUESTALK_FOUND"]) | ||
DIR_PATH=abspath(join(getcwd(), "lib/nonfree-aquestalk")).replace("\\", "/") | ||
LIB_PATH=join(DIR_PATH, "libaquestalk.a") | ||
|
||
if isfile(LIB_PATH): | ||
print("Found a copy of AquesTalk:", LIB_PATH) | ||
env.Append(BUILD_FLAGS=["-L"+DIR_PATH, "-laquestalk", "-DLIBAQUESTALK_FOUND"]) | ||
else: | ||
print("No AquesTalk library found") |
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