[英]GitHub Action pb with environment variable
我在 GitHub 工作流程中設置了環境變量,以強制 PlatformIO 之前使用 repo clone 但確實有效。
有人能看出我的代碼有什么問題嗎?
這是我的代碼:
name: Build
on: [push]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
steps:
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: '3.x'
- name: Install dependencies
run:
|
python -m pip install --upgrade pip
pip install platformio
- name: Check out Luos repository
uses: actions/checkout@v2
- name: Create env repo
run:
|
cd ..
git clone https://github.com/Luos-io/LuosHAL.git
git clone https://github.com/Luos-io/Examples.git
export PLATFORMIO_LIB_EXTRA_DIRS=/home/runner/work/Luos
- name: Run PlatformIO
run:
|
platformio run -d Examples/Projects/Button/
謝謝你的幫助。
我找到了鉛:
export PLATFORMIO_LIB_EXTRA_DIRS=/home/runner/work/Luos 需要和platformio run -d Examples/Projects/Button/
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.