From 06285b599c0cd4295ff91edb9729424f2c99db85 Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Wed, 19 Oct 2022 07:35:16 -0500 Subject: [PATCH 1/3] Update deprecated ::set-output commands --- .github/workflows/main_matrix.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main_matrix.yml b/.github/workflows/main_matrix.yml index b60d36360..2586ba5cc 100644 --- a/.github/workflows/main_matrix.yml +++ b/.github/workflows/main_matrix.yml @@ -157,7 +157,7 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} - name: Get release version string - run: echo "::set-output name=version::$(./bin/buildinfo.py long)" + run: echo "{version}={$(./bin/buildinfo.py long)}" >> $GITHUB_OUTPUT id: version - name: Store binaries as an artifact @@ -214,7 +214,7 @@ jobs: run: bin/build-nrf52.sh ${{ matrix.board }} - name: Get release version string - run: echo "::set-output name=version::$(./bin/buildinfo.py long)" + run: echo "{version}={$(./bin/buildinfo.py long)}" >> $GITHUB_OUTPUT id: version - name: Store binaries as an artifact @@ -269,7 +269,7 @@ jobs: run: ./bin/build-rpi2040.sh ${{ matrix.board }} - name: Get release version string - run: echo "::set-output name=version::$(./bin/buildinfo.py long)" + run: echo "{version}={$(./bin/buildinfo.py long)}" >> $GITHUB_OUTPUT id: version - name: Store binaries as an artifact @@ -327,7 +327,7 @@ jobs: run: bin/build-native.sh - name: Get release version string - run: echo "::set-output name=version::$(./bin/buildinfo.py long)" + run: echo "{version}={$(./bin/buildinfo.py long)}" >> $GITHUB_OUTPUT id: version - name: Store binaries as an artifact @@ -365,7 +365,7 @@ jobs: path: ./ - name: Get release version string - run: echo "::set-output name=version::$(./bin/buildinfo.py long)" + run: echo "{version}={$(./bin/buildinfo.py long)}" >> $GITHUB_OUTPUT id: version - name: Move files up @@ -434,7 +434,7 @@ jobs: python-version: 3.x - name: Get release version string - run: echo "::set-output name=version::$(./bin/buildinfo.py long)" + run: echo "{version}={$(./bin/buildinfo.py long)}" >> $GITHUB_OUTPUT id: version - uses: actions/download-artifact@v2 From 089dd5b4d76b84eb8110b794475fe46ab7388662 Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Wed, 19 Oct 2022 07:38:44 -0500 Subject: [PATCH 2/3] Update github cache action version --- .github/workflows/main_matrix.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main_matrix.yml b/.github/workflows/main_matrix.yml index 2586ba5cc..bde9c4089 100644 --- a/.github/workflows/main_matrix.yml +++ b/.github/workflows/main_matrix.yml @@ -62,7 +62,7 @@ jobs: python-version: 3.x - name: Cache python libs - uses: actions/cache@v1 + uses: actions/cache@v3 id: cache-pip # needed in if test with: path: ~/.cache/pip @@ -117,7 +117,7 @@ jobs: python-version: 3.x - name: Cache python libs - uses: actions/cache@v1 + uses: actions/cache@v3 id: cache-pip # needed in if test with: path: ~/.cache/pip @@ -195,7 +195,7 @@ jobs: python-version: 3.x - name: Cache python libs - uses: actions/cache@v1 + uses: actions/cache@v3 id: cache-pip # needed in if test with: path: ~/.cache/pip @@ -250,7 +250,7 @@ jobs: python-version: 3.x - name: Cache python libs - uses: actions/cache@v1 + uses: actions/cache@v3 id: cache-pip # needed in if test with: path: ~/.cache/pip @@ -297,7 +297,7 @@ jobs: python-version: 3.x - name: Cache python libs - uses: actions/cache@v1 + uses: actions/cache@v3 id: cache-pip # needed in if test with: path: ~/.cache/pip From e29ae1cc91e0aa35c175a37961e539d1997e9b25 Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Wed, 19 Oct 2022 08:11:28 -0500 Subject: [PATCH 3/3] Update upload-artifact version --- .github/workflows/main_matrix.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main_matrix.yml b/.github/workflows/main_matrix.yml index bde9c4089..4bff8691c 100644 --- a/.github/workflows/main_matrix.yml +++ b/.github/workflows/main_matrix.yml @@ -161,7 +161,7 @@ jobs: id: version - name: Store binaries as an artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: firmware-${{ matrix.board }}-${{ steps.version.outputs.version }}.zip path: | @@ -218,7 +218,7 @@ jobs: id: version - name: Store binaries as an artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: firmware-${{ matrix.board }}-${{ steps.version.outputs.version }}.zip path: | @@ -273,7 +273,7 @@ jobs: id: version - name: Store binaries as an artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: firmware-${{ matrix.board }}-${{ steps.version.outputs.version }}.zip path: | @@ -331,7 +331,7 @@ jobs: id: version - name: Store binaries as an artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: firmware-native-${{ steps.version.outputs.version }}.zip path: | @@ -372,7 +372,7 @@ jobs: run: mv -b -t ./ ./*tbeam-1*/littlefs*.bin ./*tbeam-1*/bleota.bin ./**/firmware*.bin ./*t-echo*/Meshtastic_nRF52_factory_erase.uf2 ./**/firmware-*.uf2 ./**/firmware-*-ota.zip ./**/*.elf ./**/meshtasticd_linux_amd64 ./*native*/*device-*.sh ./*native*/*device-*.bat - name: Repackage in single firmware zip - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: firmware-${{ steps.version.outputs.version }} path: | @@ -402,7 +402,7 @@ jobs: run: zip -j -r ./firmware-${{ steps.version.outputs.version }}.zip ./output - name: Repackage in single elfs zip - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: debug-elfs-${{ steps.version.outputs.version }}.zip path: ./*.elf