mirror of
https://github.com/actions/versions-package-tools.git
synced 2025-12-13 21:26:48 +00:00
Compare commits
4 Commits
arm64-test
...
arm64-7z-i
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a11efb4aa3 | ||
|
|
4028baf988 | ||
|
|
d30950623a | ||
|
|
16b7940fde |
55
.github/workflows/build-tool-packages.yml
vendored
55
.github/workflows/build-tool-packages.yml
vendored
@@ -30,7 +30,7 @@ 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: ubuntu-latest
|
runs-on: ${{ matrix.os }}
|
||||||
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') }}
|
excludewinarm: ${{ !(inputs.tool-name == 'node' && inputs['tool-version'] < '20.0.0' && matrix.architecture == 'arm64' && matrix.platform == 'win32') }}
|
||||||
@@ -41,9 +41,38 @@ jobs:
|
|||||||
architecture: [x64, arm64]
|
architecture: [x64, arm64]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: checkout
|
- uses: actions/checkout@v4
|
||||||
if: env.excludewinarm == 'true'
|
with:
|
||||||
uses: actions/checkout@v4
|
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
|
||||||
|
|
||||||
|
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:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
|
|
||||||
@@ -215,14 +244,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: |
|
||||||
|
|||||||
2
.github/workflows/common_tests.yml
vendored
2
.github/workflows/common_tests.yml
vendored
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
8
.github/workflows/get-new-tool-versions.yml
vendored
8
.github/workflows/get-new-tool-versions.yml
vendored
@@ -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
|
||||||
|
|
||||||
|
|||||||
4
.github/workflows/get-tools-new-versions.yml
vendored
4
.github/workflows/get-tools-new-versions.yml
vendored
@@ -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: |
|
||||||
|
|||||||
4
.github/workflows/validate-manifest.yml
vendored
4
.github/workflows/validate-manifest.yml
vendored
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user