Compare commits

...

22 Commits

Author SHA1 Message Date
aparnajyothi-y
c908be285a Update build-tool-packages.yml 2024-07-08 16:24:53 +05:30
aparnajyothi-y
9994541f1f Update build-tool-packages.yml 2024-07-08 12:32:34 +05:30
aparnajyothi-y
9a489f7635 Update build-tool-packages.yml 2024-06-28 15:33:49 +05:30
gowridurgad
3e52ce162a Update build-tool-packages.yml 2024-06-28 15:27:44 +05:30
gowridurgad
9f957a33d1 Update build-tool-packages.yml 2024-06-28 13:10:40 +05:30
gowridurgad
396031ea82 Update build-tool-packages.yml 2024-06-28 12:26:21 +05:30
gowridurgad
ce0dee0a96 Update build-tool-packages.yml 2024-06-28 12:06:39 +05:30
aparnajyothi-y
573683ef3f Update build-tool-packages.yml 2024-06-25 12:01:07 +05:30
aparnajyothi-y
9f2090d94f Update build-tool-packages.yml 2024-06-25 11:56:15 +05:30
aparnajyothi-y
59f5c62288 Update build-tool-packages.yml 2024-06-25 11:44:18 +05:30
gowridurgad
6d7d97bbfc Update build-tool-packages.yml 2024-06-25 11:11:42 +05:30
gowridurgad
2261c07726 Update build-tool-packages.yml 2024-06-25 10:52:32 +05:30
gowridurgad
f8d125bd64 Update build-tool-packages.yml 2024-06-25 10:25:30 +05:30
gowridurgad
43ef7a184e Update build-tool-packages.yml 2024-06-25 10:19:33 +05:30
gowridurgad
fd772b10e2 Update build-tool-packages.yml 2024-06-24 19:59:38 +05:30
gowridurgad
94f0c2f0d6 Update build-tool-packages.yml 2024-06-24 19:43:23 +05:30
aparnajyothi-y
8d80095e3d Update build-tool-packages.yml 2024-06-24 16:24:46 +05:30
aparnajyothi-y
e9400c9de0 Update build-tool-packages.yml 2024-06-24 16:21:03 +05:30
aparnajyothi-y
45ee256400 Update build-tool-packages.yml 2024-06-24 16:19:57 +05:30
aparnajyothi-y
4d855dfe21 Update build-tool-packages.yml 2024-06-24 16:18:55 +05:30
aparnajyothi-y
4b176b28ee Update build-tool-packages.yml 2024-06-24 16:16:03 +05:30
aparnajyothi-y
2288f67a93 Update build-tool-packages.yml 2024-06-24 16:03:09 +05:30

View File

@@ -1,4 +1,3 @@
# This reusable workflow is used by actions/*-versions repositories
# It is designed to
# - build and test new versions of a tool (Go, Node)
@@ -26,19 +25,34 @@ defaults:
run:
shell: pwsh
# Fix for windows arm64 7z file issue. More details at https://github.com/nodejs/node/issues/52231
jobs:
build:
name: Build ${{ inputs.tool-name }} ${{ inputs.tool-version }} [${{ matrix.platform }}] [${{ matrix.architecture }}]
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
env:
ARTIFACT_NAME: ${{ inputs.tool-name }}-${{ inputs.tool-version }}-${{ matrix.platform }}-${{ matrix.architecture }}
strategy:
fail-fast: false
matrix:
platform: [linux, darwin, win32]
architecture: [x64, arm64]
include:
- os: ubuntu-latest
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:
- uses: actions/checkout@v4
with:
@@ -56,12 +70,46 @@ jobs:
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:
name: ${{ env.ARTIFACT_NAME }}
path: ${{ runner.temp }}/artifact
test:
name: Test ${{ inputs.tool-name }} ${{ inputs.tool-version }} [${{ matrix.platform }}]
name: Test ${{ inputs.tool-name }} ${{ inputs.tool-version }} [${{ matrix.platform }}] [${{ matrix.arch }}]
needs: build
runs-on: ${{ matrix.os }}
env:
ARTIFACT_NAME: ${{ inputs.tool-name }}-${{ inputs.tool-version }}-${{ matrix.platform }}-${{ matrix.arch }}
RUNNER_TYPE: ${{ matrix.runner_type }}
strategy:
fail-fast: false
matrix:
@@ -69,14 +117,49 @@ jobs:
- os: ubuntu-latest
platform: linux
arch: x64
- os: setup-actions-ubuntu-arm64-2-core
platform: linux
arch: arm64
runner_type: self-hosted
- os: macos-13
platform: darwin
arch: x64
- os: macos-latest
platform: darwin
arch: arm64
- os: windows-latest
platform: win32
arch: x64
- os: setup-actions-windows-arm64-4-core
platform: win32
arch: arm64
runner_type: self-hosted
steps:
- name: Setup Environment on Windows ARM64 Runner
if: matrix.os == 'setup-actions-windows-arm64-4-core'
shell: powershell
run: |
# Install Chocolatey
Set-ExecutionPolicy Bypass -Scope Process -Force
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
echo "C:\ProgramData\Chocolatey\bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
# Install PowerShell
choco install powershell-core -y
echo "C:\Program Files\PowerShell\7" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
# Install Git
choco install git -y
echo "C:\Program Files\Git\cmd" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
# Install 7-Zip
choco install 7zip -y
echo "C:\ProgramData\chocolatey\bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
- uses: actions/checkout@v3
with:
submodules: true