From 2463aac8c87d30c0ae90461adc8fdcbe273b0341 Mon Sep 17 00:00:00 2001 From: ZanzyTHEbar Date: Sun, 12 Mar 2023 00:39:18 +0000 Subject: [PATCH] ci(test-docker-container): test new docker container --- .github/workflows/build_release_bins.yml | 82 ++++++++++++------------ 1 file changed, 41 insertions(+), 41 deletions(-) diff --git a/.github/workflows/build_release_bins.yml b/.github/workflows/build_release_bins.yml index 1b6efd1..e143165 100644 --- a/.github/workflows/build_release_bins.yml +++ b/.github/workflows/build_release_bins.yml @@ -21,48 +21,48 @@ jobs: - uses: actions/checkout@v3 with: fetch-depth: 0 - - name: Cache pip - uses: actions/cache@v3 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} - restore-keys: ${{ runner.os }}-pip- - - name: Cache PlatformIO - uses: actions/cache@v3 - with: - path: ~/.platformio - key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }} - restore-keys: | - ${{ runner.os }}-pio- - - name: Setup Python install - uses: actions/setup-python@v4 - with: - python-version: "3.x" - - name: Install PlatformIO with Pip - run: | - - python -m pip install --upgrade pip - pip install distro - pip install --upgrade platformio - pio upgrade --dev - pio pkg update --global - - name: Update build command - working-directory: ./ESP - run: | - sed -i '/\[env\]/p; s/\[env\]/upload_protocol = custom/' platformio.ini + #- name: Cache pip + # uses: actions/cache@v3 + # with: + # path: ~/.cache/pip + # key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} + # restore-keys: ${{ runner.os }}-pip- + #- name: Cache PlatformIO + # uses: actions/cache@v3 + # with: + # path: ~/.platformio + # key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }} + # restore-keys: | + # ${{ runner.os }}-pio- + #- name: Setup Python install + # uses: actions/setup-python@v4 + # with: + # python-version: "3.x" + #- name: Install PlatformIO with Pip + # run: | +# + # python -m pip install --upgrade pip + # pip install distro + # pip install --upgrade platformio + # pio upgrade --dev + # pio pkg update --global + #- name: Update build command + # working-directory: ./ESP + # run: | + # sed -i '/\[env\]/p; s/\[env\]/upload_protocol = custom/' platformio.ini - name: Build OpenIris Firmware - working-directory: ./ESP - run: | - export OPENIRIS_CI_BUILD=1 - mkdir build - mkdir build/${{ matrix.target_name }}${{ matrix.target_build_type }} - echo "::group::platformio.ini" - cat platformio.ini - echo "::endgroup::" - echo "::group::pio run" - pio run --environment ${{ matrix.target_name }}${{ matrix.target_build_type }} - echo "::endgroup::" - unzip -l './build/${{ matrix.target_name }}${{ matrix.target_build_type }}/*.zip' + uses: addnab/docker-run-action@v3 + with: + image: ghcr.io/zanzythebar/piodocker:latest + options: -v ${{ github.workspace }}/ESP:/workspace + run: | + export OPENIRIS_CI_BUILD=1 + mkdir build + mkdir build/${{ matrix.target_name }}${{ matrix.target_build_type }} + echo "::group::pio run" + pio run --environment ${{ matrix.target_name }}${{ matrix.target_build_type }} + echo "::endgroup::" + unzip -l './build/${{ matrix.target_name }}${{ matrix.target_build_type }}/*.zip' - name: Archive Firmware name File # create an environment variable with the name of the firmware file by catting the firmware_name.txt file run: |