mirror of
https://github.com/actions/versions-package-tools.git
synced 2025-12-12 04:36:49 +00:00
Compare commits
7 Commits
test-arm64
...
arm64testc
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3596698ab4 | ||
|
|
e0f35e2f09 | ||
|
|
0c2adaf4d3 | ||
|
|
a72200de65 | ||
|
|
b26793719f | ||
|
|
0ac28d3fc6 | ||
|
|
5b692dccd3 |
83
.github/workflows/build-tool-packages.yml
vendored
83
.github/workflows/build-tool-packages.yml
vendored
@@ -1,3 +1,4 @@
|
|||||||
|
|
||||||
# This reusable workflow is used by actions/*-versions repositories
|
# This reusable workflow is used by actions/*-versions repositories
|
||||||
# It is designed to
|
# It is designed to
|
||||||
# - build and test new versions of a tool (Go, Node)
|
# - build and test new versions of a tool (Go, Node)
|
||||||
@@ -25,33 +26,18 @@ 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-latest
|
||||||
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 }}
|
||||||
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
|
- uses: actions/checkout@v4
|
||||||
@@ -70,41 +56,8 @@ jobs:
|
|||||||
name: ${{ env.ARTIFACT_NAME }}
|
name: ${{ env.ARTIFACT_NAME }}
|
||||||
path: ${{ runner.temp }}/artifact
|
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:
|
test:
|
||||||
name: Test ${{ inputs.tool-name }} ${{ inputs.tool-version }} [${{ matrix.platform }}] [${{ matrix.arch }}]
|
name: Test ${{ inputs.tool-name }} ${{ inputs.tool-version }} [${{ matrix.platform }}]
|
||||||
needs: build
|
needs: build
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
env:
|
env:
|
||||||
@@ -135,31 +88,7 @@ jobs:
|
|||||||
arch: arm64
|
arch: arm64
|
||||||
runner_type: self-hosted
|
runner_type: self-hosted
|
||||||
|
|
||||||
|
|
||||||
steps:
|
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
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
|
|||||||
Reference in New Issue
Block a user