Compare commits

..

6 Commits

Author SHA1 Message Date
HarithaVattikuti
90561b6e88 Create dependabot.yml 2025-01-15 16:22:32 -06:00
HarithaVattikuti
d3c3feee4b Point to ubuntu-22.04 (#82) 2025-01-08 22:43:01 -06:00
Priya Gupta
4028baf988 Replace deprecated release action with GitHub CLI (#80) 2024-11-12 21:15:45 -06:00
aparnajyothi-y
d30950623a Upgrade the checkout to V4 (#79)
* Update versions to latest

* Update create-pr-to-update-manifest.yml

* Update get-new-tool-versions.yml

* Update get-tools-new-versions.yml

* Update validate-manifest.yml
2024-11-12 21:11:54 -06:00
gowridurgad
16b7940fde Add test jobs for arm64 architecture (#76)
* Update build-tool-packages.yml

* Update build-tool-packages.yml

* Update build-tool-packages.yml

* added RUNNER_TYPE

---------

Co-authored-by: aparnajyothi-y <147696841+aparnajyothi-y@users.noreply.github.com>
Co-authored-by: gowridurgad <gowridurga@github.com>
2024-07-09 09:46:50 -05:00
HarithaVattikuti
94d413c5d2 Add win arm64 package availability check (#77) 2024-07-09 09:02:48 -05:00
7 changed files with 85 additions and 98 deletions

14
.github/dependabot.yml vendored Normal file
View File

@@ -0,0 +1,14 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
version: 2
updates:
# Enable version updates for GitHub Actions
- package-ecosystem: 'github-actions'
# Workflow files stored in the default location of `.github/workflows`
# You don't need to specify `/.github/workflows` for `directory`. You can use `directory: "/"`.
directory: '/'
schedule:
interval: 'weekly'

View File

@@ -25,90 +25,49 @@ defaults:
run: run:
shell: pwsh shell: pwsh
# Fix for windows arm64 7z file issue. More details at https://github.com/nodejs/node/issues/52231
jobs: jobs:
build: build:
name: Build ${{ inputs.tool-name }} ${{ inputs.tool-version }} [${{ matrix.platform }}] [${{ matrix.architecture }}] name: Build ${{ inputs.tool-name }} ${{ inputs.tool-version }} [${{ matrix.platform }}] [${{ matrix.architecture }}]
runs-on: ${{ matrix.os }} runs-on: ubuntu-22.04
env: env:
ARTIFACT_NAME: ${{ inputs.tool-name }}-${{ inputs.tool-version }}-${{ matrix.platform }}-${{ matrix.architecture }} ARTIFACT_NAME: ${{ inputs.tool-name }}-${{ inputs.tool-version }}-${{ matrix.platform }}-${{ matrix.architecture }}
excludewinarm: ${{ !(inputs.tool-name == 'node' && inputs['tool-version'] < '20.0.0' && matrix.architecture == 'arm64' && matrix.platform == 'win32') }}
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
include: platform: [linux, darwin, win32]
- os: ubuntu-latest architecture: [x64, arm64]
platform: linux
architecture: x64
- os: ubuntu-latest
platform: darwin
architecture: x64
- os: ubuntu-latest
platform: win32
architecture: x64
- os: ubuntu-latest
platform: linux
architecture: arm64
- os: ubuntu-latest
platform: darwin
architecture: arm64
steps: steps:
- uses: actions/checkout@v4 - name: checkout
if: env.excludewinarm == 'true'
uses: actions/checkout@v4
with: with:
submodules: true submodules: true
- name: Build ${{ inputs.tool-name }} ${{ inputs.tool-version }} - name: Build ${{ inputs.tool-name }} ${{ inputs.tool-version }}
if: env.excludewinarm == 'true'
run: | run: |
./builders/build-${{ inputs.tool-name }}.ps1 -Version ${{ inputs.tool-version }} ` ./builders/build-${{ inputs.tool-name }}.ps1 -Version ${{ inputs.tool-version }} `
-Platform ${{ matrix.platform }} ` -Platform ${{ matrix.platform }} `
-Architecture ${{ matrix.architecture }} -Architecture ${{ matrix.architecture }}
- name: Publish artifact - name: Publish artifact
uses: actions/upload-artifact@v3 if: env.excludewinarm == 'true'
with: uses: actions/upload-artifact@v4
name: ${{ env.ARTIFACT_NAME }}
path: ${{ runner.temp }}/artifact
build-arm:
name: Build ${{ inputs.tool-name }} ${{ inputs.tool-version }} [${{ matrix.platform }}] [${{ matrix.architecture }}]
runs-on: windows-latest
if: (inputs.tool-name == 'go') || (inputs.tool-name == 'node' && inputs['tool-version'] > '20.0.0')
env:
ARTIFACT_NAME: ${{ inputs.tool-name }}-${{ inputs.tool-version }}-${{ matrix.platform }}-${{ matrix.architecture }}
strategy:
fail-fast: false
matrix:
include:
- os: windows-latest
platform: win32
architecture: arm64
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Build ${{ inputs.tool-name }} ${{ inputs.tool-version }}
run: |
./builders/build-${{ inputs.tool-name }}.ps1 -Version ${{ inputs.tool-version }} `
-Platform ${{ matrix.platform }} `
-Architecture ${{ matrix.architecture }}
- name: Publish artifact
uses: actions/upload-artifact@v3
with: with:
name: ${{ env.ARTIFACT_NAME }} name: ${{ env.ARTIFACT_NAME }}
path: ${{ runner.temp }}/artifact path: ${{ runner.temp }}/artifact
test: test:
name: Test ${{ inputs.tool-name }} ${{ inputs.tool-version }} [${{ matrix.platform }}] [${{ matrix.arch }}] name: Test ${{ inputs.tool-name }} ${{ inputs.tool-version }} [${{ matrix.platform }}] [${{ matrix.architecture }}]
needs: build needs: build
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
env: env:
ARTIFACT_NAME: ${{ inputs.tool-name }}-${{ inputs.tool-version }}-${{ matrix.platform }}-${{ matrix.arch }} ARTIFACT_NAME: ${{ inputs.tool-name }}-${{ inputs.tool-version }}-${{ matrix.platform }}-${{ matrix.architecture }}
excludewinarm: ${{ !(inputs.tool-name == 'node' && inputs['tool-version'] < '20.0.0' && matrix.architecture == 'arm64' && matrix.platform == 'win32') }}
RUNNER_TYPE: ${{ matrix.runner_type }} RUNNER_TYPE: ${{ matrix.runner_type }}
strategy: strategy:
fail-fast: false fail-fast: false
@@ -116,26 +75,25 @@ jobs:
include: include:
- os: ubuntu-latest - os: ubuntu-latest
platform: linux platform: linux
arch: x64 architecture: x64
- os: setup-actions-ubuntu-arm64-2-core
platform: linux
arch: arm64
runner_type: self-hosted
- os: macos-13 - os: macos-13
platform: darwin platform: darwin
arch: x64 architecture: x64
- os: macos-latest
platform: darwin
arch: arm64
- os: windows-latest - os: windows-latest
platform: win32 platform: win32
arch: x64 architecture: x64
- os: setup-actions-ubuntu-arm64-2-core
platform: linux
architecture: arm64
runner_type: self-hosted
- os: macos-latest
platform: darwin
architecture: arm64
- os: setup-actions-windows-arm64-4-core - os: setup-actions-windows-arm64-4-core
platform: win32 platform: win32
arch: arm64 architecture: arm64
runner_type: self-hosted runner_type: self-hosted
steps: steps:
- name: Setup Environment on Windows ARM64 Runner - name: Setup Environment on Windows ARM64 Runner
if: matrix.os == 'setup-actions-windows-arm64-4-core' if: matrix.os == 'setup-actions-windows-arm64-4-core'
@@ -159,20 +117,25 @@ jobs:
# Install 7-Zip # Install 7-Zip
choco install 7zip -y choco install 7zip -y
echo "C:\ProgramData\chocolatey\bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8 echo "C:\ProgramData\chocolatey\bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
- name: checkout
- uses: actions/checkout@v3 if: env.excludewinarm == 'true'
uses: actions/checkout@v4
with: with:
submodules: true submodules: true
- name: Fully cleanup the toolcache directory before testing - name: Fully cleanup the toolcache directory before testing
if: env.excludewinarm == 'true'
run: ./helpers/clean-toolcache.ps1 -ToolName "${{ inputs.tool-name }}" run: ./helpers/clean-toolcache.ps1 -ToolName "${{ inputs.tool-name }}"
- name: Download artifact - name: Download artifact
uses: actions/download-artifact@v3 if: env.excludewinarm == 'true'
uses: actions/download-artifact@v4
with: with:
path: ${{ runner.temp }} name: ${{ env.ARTIFACT_NAME }}
path: ${{ runner.temp }}/${{ env.ARTIFACT_NAME }}
- name: Extract files - name: Extract files
if: env.excludewinarm == 'true'
run: | run: |
if ('${{ matrix.platform }}' -eq 'win32') { if ('${{ matrix.platform }}' -eq 'win32') {
if ('${{ inputs.tool-name }}' -eq 'node') { if ('${{ inputs.tool-name }}' -eq 'node') {
@@ -192,23 +155,28 @@ jobs:
working-directory: ${{ runner.temp }}/${{ env.ARTIFACT_NAME }} working-directory: ${{ runner.temp }}/${{ env.ARTIFACT_NAME }}
- name: Apply build artifact to the local machine - name: Apply build artifact to the local machine
if: env.excludewinarm == 'true'
run: | run: |
if ('${{ matrix.platform }}' -eq 'win32') { powershell ./setup.ps1 } else { sh ./setup.sh } if ('${{ matrix.platform }}' -eq 'win32') { powershell ./setup.ps1 }
else {
sh ./setup.sh
}
working-directory: ${{ runner.temp }}/${{ env.ARTIFACT_NAME }} working-directory: ${{ runner.temp }}/${{ env.ARTIFACT_NAME }}
- name: Setup Node.js ${{ inputs.tool-version }} - name: Setup Node.js ${{ inputs.tool-version }}
if: inputs.tool-name == 'node' if: env.excludewinarm == 'true' && inputs.tool-name == 'node'
uses: actions/setup-node@v3 uses: actions/setup-node@v4
with: with:
node-version: ${{ inputs.tool-version }} node-version: ${{ inputs.tool-version }}
- name: Setup Go ${{ inputs.tool-version }} - name: Setup Go ${{ inputs.tool-version }}
if: inputs.tool-name == 'go' if: inputs.tool-name == 'go'
uses: actions/setup-go@v3 uses: actions/setup-go@v5
with: with:
go-version: ${{ inputs.tool-version }} go-version: ${{ inputs.tool-version }}
- name: Wait for the logs - name: Wait for the logs
if: env.excludewinarm == 'true'
run: | run: |
Write-Host "Fake step that does nothing" Write-Host "Fake step that does nothing"
Write-Host "We need it because log from the previous step 'Setup ${{ inputs.tool-name }}' is not available here yet." Write-Host "We need it because log from the previous step 'Setup ${{ inputs.tool-name }}' is not available here yet."
@@ -217,6 +185,7 @@ jobs:
for ($i = 0; $i -lt 200; $i++) { Get-Random } for ($i = 0; $i -lt 200; $i++) { Get-Random }
- name: Run tests - name: Run tests
if: env.excludewinarm == 'true'
env: env:
VERSION: ${{ inputs.tool-version }} VERSION: ${{ inputs.tool-version }}
run: | run: |
@@ -232,7 +201,7 @@ jobs:
needs: test needs: test
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/download-artifact@v3 - uses: actions/download-artifact@v4
- name: Generate release body - name: Generate release body
id: generate-release-body id: generate-release-body
@@ -246,14 +215,18 @@ jobs:
- name: Publish Release - name: Publish Release
id: create_release id: create_release
uses: actions/create-release@v1
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: shell: bash
tag_name: ${{ inputs.tool-version }}-${{ github.run_id }} run: |
release_name: ${{ inputs.tool-version }} tag_name="${{ inputs.tool-version }}-${{ github.run_id }}"
body: | gh release create "$tag_name" \
${{ steps.generate-release-body.outputs.RELEASE_BODY }} --repo="$GITHUB_REPOSITORY" \
--title="${{ inputs.tool-version }}" \
--notes="${{ steps.generate-release-body.outputs.RELEASE_BODY }}"
release_id=$(gh release view "$tag_name" --repo "$GITHUB_REPOSITORY" --json databaseId --jq '.databaseId')
echo "id=$release_id" >> $GITHUB_OUTPUT
- name: Generate hash for packages - name: Generate hash for packages
run: | run: |
@@ -268,7 +241,7 @@ jobs:
} }
- name: Upload release assets - name: Upload release assets
uses: actions/github-script@v6 uses: actions/github-script@v7
with: with:
github-token: ${{ secrets.GITHUB_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}
script: | script: |
@@ -292,7 +265,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Trigger "Create Pull Request" workflow - name: Trigger "Create Pull Request" workflow
uses: actions/github-script@v6 uses: actions/github-script@v7
with: with:
github-token: ${{ secrets.GITHUB_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}
script: | script: |

View File

@@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Install Pester - name: Install Pester
shell: pwsh shell: pwsh

View File

@@ -20,7 +20,7 @@ jobs:
name: Create Pull Request name: Create Pull Request
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
submodules: true submodules: true

View File

@@ -30,7 +30,7 @@ jobs:
outputs: outputs:
versions_output: ${{ steps.Get_new_versions.outputs.TOOL_VERSIONS }} versions_output: ${{ steps.Get_new_versions.outputs.TOOL_VERSIONS }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
submodules: true submodules: true
@@ -45,7 +45,7 @@ jobs:
env: env:
TOOL_VERSIONS: ${{needs.find_new_versions.outputs.versions_output}} TOOL_VERSIONS: ${{needs.find_new_versions.outputs.versions_output}}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
submodules: true submodules: true
@@ -75,7 +75,7 @@ jobs:
TOOL_VERSIONS: ${{needs.find_new_versions.outputs.versions_output}} TOOL_VERSIONS: ${{needs.find_new_versions.outputs.versions_output}}
environment: Get Available Tools Versions - Publishing Approval environment: Get Available Tools Versions - Publishing Approval
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
submodules: true submodules: true
@@ -95,7 +95,7 @@ jobs:
needs: [find_new_versions, check_new_versions, trigger_builds] needs: [find_new_versions, check_new_versions, trigger_builds]
if: failure() if: failure()
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
submodules: true submodules: true

View File

@@ -42,7 +42,7 @@ jobs:
name: 'Searching for new versions of ${{ matrix.tool.name }}' name: 'Searching for new versions of ${{ matrix.tool.name }}'
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- id: get-new-tool-versions - id: get-new-tool-versions
name: Get new tool versions name: Get new tool versions
run: | run: |
@@ -71,7 +71,7 @@ jobs:
needs: [find-new-tool-versions] needs: [find-new-tool-versions]
if: failure() if: failure()
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v4
- id: get-failed-jobs - id: get-failed-jobs
name: Get failed jobs name: Get failed jobs
run: | run: |

View File

@@ -24,7 +24,7 @@ jobs:
validation: validation:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
submodules: true submodules: true
@@ -37,7 +37,7 @@ jobs:
needs: [validation] needs: [validation]
if: failure() if: failure()
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
submodules: true submodules: true