From 40949933e5eea4e3f2e27480fd3283ae8d057af9 Mon Sep 17 00:00:00 2001 From: Lewis Jackson <> Date: Wed, 31 May 2023 22:47:18 +0300 Subject: [PATCH] Update workflow to use preprepared docker image Clean up YML Specify path for pio explicitly --- .forgejo/workflows/compile.yml | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/.forgejo/workflows/compile.yml b/.forgejo/workflows/compile.yml index 555140d..31b3338 100644 --- a/.forgejo/workflows/compile.yml +++ b/.forgejo/workflows/compile.yml @@ -5,17 +5,10 @@ jobs: Compile: runs-on: ubuntu-latest steps: - - name: Setup PlatformIO + - name: Checkout code + uses: actions/checkout@v3 + + - name: Compile run: | - apt update - apt -y install curl git python3 python3-pip - python3 -m pip install --upgrade pip - pip3 install -U platformio - pio upgrade --dev - - name: Setup node - run: | - curl -fsSL https://deb.nodesource.com/setup_20.x | bash - - apt-get install -y nodejs - - uses: actions/checkout@v3 - - run: cd ${{ github.workspace }} - - run: pio run + cd ${{ github.workspace }} + /root/.platformio/penv/bin/pio run