chore: Cleans workflows for NodeJS 24 (#2394)
This commit is contained in:
parent
12b81c7375
commit
26c1e399ba
6 changed files with 51 additions and 29 deletions
24
.github/workflows/build-test.yml
vendored
24
.github/workflows/build-test.yml
vendored
|
|
@ -3,8 +3,22 @@ name: Build
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
paths:
|
||||||
|
- '.config/dotnet-tools.json'
|
||||||
|
- 'Projects/**'
|
||||||
|
- 'Directory.Build.props'
|
||||||
|
- 'global.json'
|
||||||
|
- 'version.json'
|
||||||
|
- '*.slnx'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
paths:
|
||||||
|
- '.config/dotnet-tools.json'
|
||||||
|
- 'Projects/**'
|
||||||
|
- 'Directory.Build.props'
|
||||||
|
- 'global.json'
|
||||||
|
- 'version.json'
|
||||||
|
- '*.slnx'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-macos:
|
build-macos:
|
||||||
|
|
@ -20,11 +34,11 @@ jobs:
|
||||||
name: MacOS 26
|
name: MacOS 26
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
|
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
|
||||||
- name: Install .NET
|
- name: Install .NET
|
||||||
uses: actions/setup-dotnet@v4
|
uses: actions/setup-dotnet@v5
|
||||||
with:
|
with:
|
||||||
global-json-file: global.json
|
global-json-file: global.json
|
||||||
- name: Install Prerequisites
|
- name: Install Prerequisites
|
||||||
|
|
@ -32,7 +46,7 @@ jobs:
|
||||||
brew update
|
brew update
|
||||||
brew install icu4c libdeflate zstd argon2
|
brew install icu4c libdeflate zstd argon2
|
||||||
- name: Set Library Path
|
- name: Set Library Path
|
||||||
run: echo "DYLD_LIBRARY_PATH=/opt/homebrew/lib:\$DYLD_LIBRARY_PATH" >> $GITHUB_ENV
|
run: echo "DYLD_LIBRARY_PATH=/opt/homebrew/lib:$DYLD_LIBRARY_PATH" >> $GITHUB_ENV
|
||||||
- name: Build
|
- name: Build
|
||||||
run: dotnet run --project Projects/BuildTool -- --config Release --skip-prereqs
|
run: dotnet run --project Projects/BuildTool -- --config Release --skip-prereqs
|
||||||
- name: Migration Changes
|
- name: Migration Changes
|
||||||
|
|
@ -82,11 +96,11 @@ jobs:
|
||||||
- name: Install Prerequisites using apt
|
- name: Install Prerequisites using apt
|
||||||
run: apt-get update -y && apt-get install -y curl libicu-dev libdeflate-dev zstd libargon2-dev tzdata liburing-dev
|
run: apt-get update -y && apt-get install -y curl libicu-dev libdeflate-dev zstd libargon2-dev tzdata liburing-dev
|
||||||
if: ${{ matrix.packageManager == 'apt' }}
|
if: ${{ matrix.packageManager == 'apt' }}
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
|
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
|
||||||
- name: Install .NET
|
- name: Install .NET
|
||||||
uses: actions/setup-dotnet@v4
|
uses: actions/setup-dotnet@v5
|
||||||
with:
|
with:
|
||||||
global-json-file: global.json
|
global-json-file: global.json
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|
|
||||||
8
.github/workflows/build-tool-release.yml
vendored
8
.github/workflows/build-tool-release.yml
vendored
|
|
@ -32,12 +32,12 @@ jobs:
|
||||||
artifact: build-tool-linux-arm64
|
artifact: build-tool-linux-arm64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0 # Full clone required for Nerdbank.GitVersioning
|
fetch-depth: 0 # Full clone required for Nerdbank.GitVersioning
|
||||||
|
|
||||||
- name: Install .NET
|
- name: Install .NET
|
||||||
uses: actions/setup-dotnet@v4
|
uses: actions/setup-dotnet@v5
|
||||||
with:
|
with:
|
||||||
global-json-file: global.json
|
global-json-file: global.json
|
||||||
|
|
||||||
|
|
@ -54,7 +54,7 @@ jobs:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.artifact }}
|
name: ${{ matrix.artifact }}
|
||||||
path: publish/${{ matrix.artifact }}
|
path: publish/${{ matrix.artifact }}
|
||||||
|
|
@ -68,7 +68,7 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Download all artifacts
|
- name: Download all artifacts
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v8
|
||||||
with:
|
with:
|
||||||
path: artifacts/
|
path: artifacts/
|
||||||
merge-multiple: true
|
merge-multiple: true
|
||||||
|
|
|
||||||
21
.github/workflows/create-release.yml
vendored
21
.github/workflows/create-release.yml
vendored
|
|
@ -10,27 +10,26 @@ jobs:
|
||||||
name: Create Release
|
name: Create Release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
|
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
|
||||||
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
|
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
|
||||||
- name: Install .NET
|
- name: Install .NET
|
||||||
uses: actions/setup-dotnet@v4
|
uses: actions/setup-dotnet@v5
|
||||||
with:
|
with:
|
||||||
global-json-file: global.json
|
global-json-file: global.json
|
||||||
- name: Install NGBV
|
- name: Compute version
|
||||||
uses: dotnet/nbgv@master
|
uses: dotnet/nbgv@v0.5.1
|
||||||
id: nbgv
|
id: nbgv
|
||||||
- name: Push git changes
|
- name: Push version tag
|
||||||
uses: ad-m/github-push-action@master
|
run: |
|
||||||
with:
|
git tag ${{ steps.nbgv.outputs.Version }}
|
||||||
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
|
git push origin ${{ steps.nbgv.outputs.Version }}
|
||||||
tags: true
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
id: create_release
|
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
body: ${{ steps.changelog.outputs.clean_changelog }}
|
|
||||||
tag_name: ${{ steps.nbgv.outputs.Version }}
|
tag_name: ${{ steps.nbgv.outputs.Version }}
|
||||||
name: ${{ steps.nbgv.outputs.Version }}
|
name: ${{ steps.nbgv.outputs.Version }}
|
||||||
draft: false
|
draft: false
|
||||||
|
|
|
||||||
6
.github/workflows/post-release-discord.yml
vendored
6
.github/workflows/post-release-discord.yml
vendored
|
|
@ -9,12 +9,8 @@ jobs:
|
||||||
post-release-discord:
|
post-release-discord:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
|
|
||||||
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
|
|
||||||
- name: Post Release on Discord
|
- name: Post Release on Discord
|
||||||
uses: SethCohen/github-releases-to-discord@v1.15.0
|
uses: SethCohen/github-releases-to-discord@v1.19.0
|
||||||
with:
|
with:
|
||||||
webhook_url: ${{ secrets.WEBHOOK_URL }}
|
webhook_url: ${{ secrets.WEBHOOK_URL }}
|
||||||
username: "Release Changelog"
|
username: "Release Changelog"
|
||||||
|
|
|
||||||
4
.github/workflows/update-docs.yml
vendored
4
.github/workflows/update-docs.yml
vendored
|
|
@ -9,9 +9,9 @@ jobs:
|
||||||
update-docs:
|
update-docs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v6
|
||||||
with:
|
with:
|
||||||
python-version: 3.x
|
python-version: 3.x
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,18 +1,31 @@
|
||||||
name: 'Build'
|
name: 'Build'
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
- main
|
branches:
|
||||||
|
include:
|
||||||
|
- main
|
||||||
|
paths:
|
||||||
|
include:
|
||||||
|
- .config/dotnet-tools.json
|
||||||
|
- Projects/**
|
||||||
|
- Directory.Build.props
|
||||||
|
- global.json
|
||||||
|
- version.json
|
||||||
|
- '*.slnx'
|
||||||
|
- '*.sln'
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
|
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
- job: BuildWindows
|
- job: BuildWindows
|
||||||
displayName: 'Windows Server 2022'
|
displayName: 'Windows Server 2025'
|
||||||
pool:
|
pool:
|
||||||
vmImage: 'windows-latest'
|
vmImage: 'windows-latest'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- checkout: self
|
||||||
|
fetchDepth: 0 # avoid shallow clone so nbgv can do its work.
|
||||||
- task: UseDotNet@2
|
- task: UseDotNet@2
|
||||||
displayName: 'Install .NET'
|
displayName: 'Install .NET'
|
||||||
inputs:
|
inputs:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue