From d52a10d135e48d7f7566e350230a8b12667135cb Mon Sep 17 00:00:00 2001 From: Alessio Perugini Date: Mon, 4 Sep 2023 15:47:29 +0200 Subject: [PATCH] Bump action/checkout to v4 --- .../workflows/check-go-dependencies-task.yml | 4 +- .github/workflows/check-go-task.yml | 10 ++-- .github/workflows/check-license.yml | 2 +- .github/workflows/publish-go-tester-task.yml | 11 ++--- .github/workflows/release.yml | 48 +++++++++---------- .github/workflows/sync-labels.yml | 4 +- .../workflows/test-go-integration-task.yml | 2 +- .github/workflows/test-go-task.yml | 2 +- 8 files changed, 41 insertions(+), 42 deletions(-) diff --git a/.github/workflows/check-go-dependencies-task.yml b/.github/workflows/check-go-dependencies-task.yml index ed31f06b5..d07fae92b 100644 --- a/.github/workflows/check-go-dependencies-task.yml +++ b/.github/workflows/check-go-dependencies-task.yml @@ -68,7 +68,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: recursive @@ -118,7 +118,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: recursive diff --git a/.github/workflows/check-go-task.yml b/.github/workflows/check-go-task.yml index 5d6796017..4bb6869ca 100644 --- a/.github/workflows/check-go-task.yml +++ b/.github/workflows/check-go-task.yml @@ -68,7 +68,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install Go uses: actions/setup-go@v4 @@ -105,7 +105,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install Go uses: actions/setup-go@v4 @@ -142,7 +142,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install Go uses: actions/setup-go@v4 @@ -179,7 +179,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install Go uses: actions/setup-go@v4 @@ -216,7 +216,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install Go uses: actions/setup-go@v4 diff --git a/.github/workflows/check-license.yml b/.github/workflows/check-license.yml index ee9362b77..5a7ce5daf 100644 --- a/.github/workflows/check-license.yml +++ b/.github/workflows/check-license.yml @@ -63,7 +63,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install Ruby uses: ruby/setup-ruby@v1 diff --git a/.github/workflows/publish-go-tester-task.yml b/.github/workflows/publish-go-tester-task.yml index 14b7df441..0d2c78ff1 100644 --- a/.github/workflows/publish-go-tester-task.yml +++ b/.github/workflows/publish-go-tester-task.yml @@ -60,15 +60,15 @@ jobs: build: needs: run-determination if: needs.run-determination.outputs.result == 'true' - + #use the strategy instead because we still use the native build strategy: matrix: os: [ubuntu-20.04, windows-2019, macos-12] arch: [-amd64] include: - - os: windows-2019 - arch: -386 + - os: windows-2019 + arch: -386 defaults: run: @@ -77,7 +77,6 @@ jobs: runs-on: ${{ matrix.os }} steps: - - name: Set env vars run: | echo $(go env GOPATH)/bin >> $GITHUB_PATH @@ -86,7 +85,7 @@ jobs: run: git config --global core.autocrlf false - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install Go uses: actions/setup-go@v4 @@ -122,7 +121,7 @@ jobs: # building the agent for win requires a different task because of an extra flag - name: Build the Agent for win32 env: - GOARCH: 386 # 32bit architecture (for support) + GOARCH: 386 # 32bit architecture (for support) run: task go:build-win if: runner.os == 'Windows' && matrix.arch == '-386' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 51041c4eb..61bff2ee3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,11 +33,11 @@ jobs: os: [ubuntu-20.04, windows-2019, macos-12] arch: [amd64] include: - - os: windows-2019 - arch: 386 - ext: ".exe" - - os: windows-2019 - ext: ".exe" + - os: windows-2019 + arch: 386 + ext: ".exe" + - os: windows-2019 + ext: ".exe" defaults: run: @@ -55,7 +55,7 @@ jobs: # This is a workaround while waiting for create-release action to implement auto pre-release based on tag id: prerelease run: | - curl -L -s https://github.com/fsaintjacques/semver-tool/archive/3.1.0.zip -o /tmp/3.1.0.zip + curl -L -s https://github.com/fsaintjacques/semver-tool/archive/3.1.0.zip -o /tmp/3.1.0.zip unzip -p /tmp/3.1.0.zip semver-tool-3.1.0/src/semver >/tmp/semver && chmod +x /tmp/semver if [[ $(/tmp/semver get prerel ${GITHUB_REF/refs\/tags\//}) ]]; then echo "IS_PRE=true" >> $GITHUB_OUTPUT; fi @@ -63,7 +63,7 @@ jobs: run: git config --global core.autocrlf false - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install Go uses: actions/setup-go@v4 @@ -81,7 +81,7 @@ jobs: - name: Install Taskfile uses: arduino/setup-task@v1 with: - version: '3.x' + version: "3.x" repo-token: ${{ secrets.GITHUB_TOKEN }} - name: Build the Agent for linux @@ -102,7 +102,7 @@ jobs: # building the agent for win requires a different task because of an extra flag - name: Build the Agent for win32 env: - GOARCH: 386 # 32bit architecture (for support) + GOARCH: 386 # 32bit architecture (for support) run: task go:build-win if: matrix.os == 'windows-2019' && matrix.arch == '386' @@ -138,7 +138,7 @@ jobs: - name: Upload autoupdate files to Arduino downloads servers run: | aws s3 sync public/ s3://${{ secrets.DOWNLOADS_BUCKET }}${{ env.TARGET }} - aws s3 sync public/ s3://${{ secrets.DOWNLOADS_BUCKET }}${{ env.OLD_TARGET }} + aws s3 sync public/ s3://${{ secrets.DOWNLOADS_BUCKET }}${{ env.OLD_TARGET }} if: steps.prerelease.outputs.IS_PRE != 'true' - name: Upload artifacts @@ -163,9 +163,9 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: - repository: 'bcmi-labs/arduino-create-agent-installer' # the repo which contains the bundle structure and icons + repository: "bcmi-labs/arduino-create-agent-installer" # the repo which contains the bundle structure and icons token: ${{ secrets.ARDUINO_CREATE_AGENT_CI_PAT }} - name: Download artifact @@ -218,7 +218,7 @@ jobs: if-no-files-found: error name: ArduinoCreateAgent.app_${{ matrix.arch }} path: ArduinoCreateAgent.app_${{ matrix.arch }}.tar - + # The notarize-macos job will download the macos bundle from the previous job, sign, notarize and re-upload it, uploading it also on s3 download servers for the autoupdate. notarize-macos: name: Notarize bundle @@ -262,7 +262,7 @@ jobs: "${{ env.KEYCHAIN }}" - name: Install gon for code signing and app notarization - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: darkvertex/gon #this fork has support for --deep notarization path: ${{ env.GON_PATH }} @@ -297,7 +297,7 @@ jobs: - name: Sign and notarize binary run: gon -log-level=debug -log-json "${{ env.GON_CONFIG_PATH }}" - + - name: Upload autoupdate bundle to Arduino downloads servers run: aws s3 cp ArduinoCreateAgent.app_${{ matrix.arch }}_notarized.zip s3://${{ secrets.DOWNLOADS_BUCKET }}${{ env.TARGET }}${GITHUB_REF/refs\/tags\//}/ # the version should be created in th the build job if: ${{ needs.build.outputs.prerelease != 'true' }} @@ -338,8 +338,8 @@ jobs: INSTALLER_CERT_WINDOWS_PFX: "/tmp/ArduinoCerts2020.pfx" strategy: - fail-fast: false # if one os is failing continue nonetheless - matrix: # used to generate installers for different OS and not for runs-on + fail-fast: false # if one os is failing continue nonetheless + matrix: # used to generate installers for different OS and not for runs-on os: [ubuntu-20.04, windows-2019] arch: [amd64] include: @@ -361,16 +361,16 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: - repository: 'bcmi-labs/arduino-create-agent-installer' # the repo which contains install.xml + repository: "bcmi-labs/arduino-create-agent-installer" # the repo which contains install.xml token: ${{ secrets.ARDUINO_CREATE_AGENT_CI_PAT }} - name: Download artifact uses: actions/download-artifact@v3 with: name: ${{ env.PROJECT_NAME }}-${{ matrix.os }}-${{ matrix.arch }} - path: artifacts/${{ matrix.platform-name }}/ # path expected by installbuilder + path: artifacts/${{ matrix.platform-name }}/ # path expected by installbuilder # zip artifacts do not mantain executable permission - name: Make executable @@ -417,9 +417,9 @@ jobs: runs-on: macos-12 steps: - name: Checkout repo with icons/background - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: - repository: 'bcmi-labs/arduino-create-agent-installer' # the repo which contains the icons/background + repository: "bcmi-labs/arduino-create-agent-installer" # the repo which contains the icons/background token: ${{ secrets.ARDUINO_CREATE_AGENT_CI_PAT }} - name: Download artifact @@ -515,7 +515,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 # fetch all history for the create changelog step to work properly @@ -579,7 +579,7 @@ jobs: with: repo_token: ${{ secrets.GITHUB_TOKEN }} tag: ${{ github.ref }} - file_glob: true # If set to true, the file argument can be a glob pattern + file_glob: true # If set to true, the file argument can be a glob pattern file: release/* - name: Upload release files on Arduino downloads servers diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml index 6f9c91a91..9ecf638e8 100644 --- a/.github/workflows/sync-labels.yml +++ b/.github/workflows/sync-labels.yml @@ -27,7 +27,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Download JSON schema for labels configuration file id: download-schema @@ -106,7 +106,7 @@ jobs: echo "flag=--dry-run" >> $GITHUB_OUTPUT - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Download configuration files artifact uses: actions/download-artifact@v3 diff --git a/.github/workflows/test-go-integration-task.yml b/.github/workflows/test-go-integration-task.yml index 7bc9d38e0..6de9f37e8 100644 --- a/.github/workflows/test-go-integration-task.yml +++ b/.github/workflows/test-go-integration-task.yml @@ -72,7 +72,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install Go uses: actions/setup-go@v4 diff --git a/.github/workflows/test-go-task.yml b/.github/workflows/test-go-task.yml index 492511218..3bda6dd65 100644 --- a/.github/workflows/test-go-task.yml +++ b/.github/workflows/test-go-task.yml @@ -78,7 +78,7 @@ jobs: run: git config --global core.autocrlf false - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install Go uses: actions/setup-go@v4