ci: upgrade actions to node24-native versions, release notes from CHANGELOG
- Upgrade all GitHub Actions to node24-native major versions: actions/checkout@v6, setup-python@v6, upload-artifact@v7, download-artifact@v8, microsoft/setup-msbuild@v3, softprops/action-gh-release@v3 - Remove FORCE_JAVASCRIPT_ACTIONS_TO_NODE24 env var (no longer needed) - Release workflow now extracts the relevant CHANGELOG section as the GitHub Release body instead of a static message - docs: add missing [2.2.0] changelog entry (Linux MinGW-w64 support)
This commit is contained in:
@@ -12,9 +12,6 @@
|
|||||||
|
|
||||||
name: Build
|
name: Build
|
||||||
|
|
||||||
env:
|
|
||||||
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: 'true'
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
@@ -35,17 +32,17 @@ jobs:
|
|||||||
config: [x86-ansi, x86-unicode, x64-unicode]
|
config: [x86-ansi, x86-unicode, x64-unicode]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v6
|
||||||
with:
|
with:
|
||||||
python-version: '3.11'
|
python-version: '3.11'
|
||||||
|
|
||||||
- name: Setup MSBuild
|
- name: Setup MSBuild
|
||||||
uses: microsoft/setup-msbuild@v2
|
uses: microsoft/setup-msbuild@v3
|
||||||
|
|
||||||
- name: Read VERSION
|
- name: Read VERSION
|
||||||
id: version
|
id: version
|
||||||
@@ -67,7 +64,7 @@ jobs:
|
|||||||
Copy-Item $src $dst
|
Copy-Item $src $dst
|
||||||
|
|
||||||
- name: Upload DLL
|
- name: Upload DLL
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: ${{ github.event.repository.name }}-${{ steps.version.outputs.version }}-${{ matrix.config }}
|
name: ${{ github.event.repository.name }}-${{ steps.version.outputs.version }}-${{ matrix.config }}
|
||||||
path: dist/**
|
path: dist/**
|
||||||
@@ -82,12 +79,12 @@ jobs:
|
|||||||
config: [x86-ansi, x86-unicode, x64-unicode]
|
config: [x86-ansi, x86-unicode, x64-unicode]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v6
|
||||||
with:
|
with:
|
||||||
python-version: '3.11'
|
python-version: '3.11'
|
||||||
|
|
||||||
@@ -122,7 +119,7 @@ jobs:
|
|||||||
cp "plugins/$dir/nsis7z.dll" "$dst/"
|
cp "plugins/$dir/nsis7z.dll" "$dst/"
|
||||||
|
|
||||||
- name: Upload DLL
|
- name: Upload DLL
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: ${{ github.event.repository.name }}-${{ steps.version_linux.outputs.version }}-${{ matrix.config }}-linux
|
name: ${{ github.event.repository.name }}-${{ steps.version_linux.outputs.version }}-${{ matrix.config }}-linux
|
||||||
path: dist/**
|
path: dist/**
|
||||||
|
|||||||
@@ -5,9 +5,6 @@
|
|||||||
|
|
||||||
name: Release
|
name: Release
|
||||||
|
|
||||||
env:
|
|
||||||
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: 'true'
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags: ['v*']
|
tags: ['v*']
|
||||||
@@ -28,15 +25,15 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
config: [x86-ansi, x86-unicode, x64-unicode]
|
config: [x86-ansi, x86-unicode, x64-unicode]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v6
|
||||||
with:
|
with:
|
||||||
python-version: '3.11'
|
python-version: '3.11'
|
||||||
|
|
||||||
- uses: microsoft/setup-msbuild@v2
|
- uses: microsoft/setup-msbuild@v3
|
||||||
|
|
||||||
- name: Build ${{ matrix.config }}
|
- name: Build ${{ matrix.config }}
|
||||||
run: python build_plugin.py --config ${{ matrix.config }}
|
run: python build_plugin.py --config ${{ matrix.config }}
|
||||||
@@ -66,7 +63,7 @@ jobs:
|
|||||||
if (Test-Path "examples") { Copy-Item "examples" $stage -Recurse }
|
if (Test-Path "examples") { Copy-Item "examples" $stage -Recurse }
|
||||||
Compress-Archive -Path "$stage/*" -DestinationPath "$name.zip" -Force
|
Compress-Archive -Path "$stage/*" -DestinationPath "$name.zip" -Force
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: pkg-${{ matrix.config }}
|
name: pkg-${{ matrix.config }}
|
||||||
path: '*.zip'
|
path: '*.zip'
|
||||||
@@ -78,11 +75,11 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
config: [x86-ansi, x86-unicode, x64-unicode]
|
config: [x86-ansi, x86-unicode, x64-unicode]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v6
|
||||||
with:
|
with:
|
||||||
python-version: '3.11'
|
python-version: '3.11'
|
||||||
|
|
||||||
@@ -110,23 +107,36 @@ jobs:
|
|||||||
mkdir -p "$dst"
|
mkdir -p "$dst"
|
||||||
cp "plugins/$dir/nsis7z.dll" "$dst/"
|
cp "plugins/$dir/nsis7z.dll" "$dst/"
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: linux-build-${{ matrix.config }}
|
name: linux-build-${{ matrix.config }}
|
||||||
path: dist/**
|
path: dist/**
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
publish:
|
publish: needs: [build, build-linux]
|
||||||
needs: [build, build-linux]
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
- uses: actions/download-artifact@v4
|
- uses: actions/download-artifact@v8
|
||||||
with:
|
with:
|
||||||
path: artifacts
|
path: artifacts
|
||||||
merge-multiple: true
|
merge-multiple: true
|
||||||
|
|
||||||
|
- name: Extract changelog section
|
||||||
|
run: |
|
||||||
|
tag="${{ github.ref_name }}"
|
||||||
|
version="${tag#v}"
|
||||||
|
awk -v ver="[$version]" '
|
||||||
|
/^## / && index($0, ver) { found=1; next }
|
||||||
|
found && /^## / { exit }
|
||||||
|
found { print }
|
||||||
|
' CHANGELOG.md > release_body.md
|
||||||
|
# Append Gitea notice
|
||||||
|
echo "" >> release_body.md
|
||||||
|
echo "---" >> release_body.md
|
||||||
|
echo "_Repository primario: vedi link Gitea nel README. Il mirror GitHub è generato automaticamente._" >> release_body.md
|
||||||
|
|
||||||
- name: SHA256SUMS
|
- name: SHA256SUMS
|
||||||
run: |
|
run: |
|
||||||
cd artifacts
|
cd artifacts
|
||||||
@@ -134,14 +144,9 @@ jobs:
|
|||||||
cat SHA256SUMS.txt
|
cat SHA256SUMS.txt
|
||||||
|
|
||||||
- name: Create GitHub Release
|
- name: Create GitHub Release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v3
|
||||||
with:
|
with:
|
||||||
files: |
|
files: |
|
||||||
artifacts/*.zip
|
artifacts/*.zip
|
||||||
artifacts/SHA256SUMS.txt
|
artifacts/SHA256SUMS.txt
|
||||||
generate_release_notes: true
|
body_path: release_body.md
|
||||||
body: |
|
|
||||||
**Repository primario**: vedi link Gitea nel README.
|
|
||||||
|
|
||||||
Il mirror GitHub è generato automaticamente dal repo Gitea (sorgente di verità).
|
|
||||||
Per issue e PR aprire ticket sul repository primario Gitea.
|
|
||||||
|
|||||||
@@ -15,6 +15,17 @@ e il progetto aderisce al [Semantic Versioning](https://semver.org/spec/v2.0.0.h
|
|||||||
### Changed
|
### Changed
|
||||||
- GitHub Actions workflows now opt into Node 24 for JavaScript-based actions to avoid Node 20 deprecation warnings
|
- GitHub Actions workflows now opt into Node 24 for JavaScript-based actions to avoid Node 20 deprecation warnings
|
||||||
|
|
||||||
|
## [2.2.0] — 2026-05-02
|
||||||
|
|
||||||
|
### Added
|
||||||
|
- Linux MinGW-w64 cross-build support in `build_plugin.py` via `--host linux`
|
||||||
|
- `tools/linux/build_plugin_linux.py` for standalone Linux builds
|
||||||
|
- Color output and progress spinner in all legacy build scripts
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
- `build_plugin.py` now supports both Windows (MSBuild) and Linux (MinGW-w64) targets
|
||||||
|
- Windows build-script f-string fixes
|
||||||
|
|
||||||
## [2.1.0] — 2026-04-30
|
## [2.1.0] — 2026-04-30
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
@@ -46,6 +57,7 @@ e il progetto aderisce al [Semantic Versioning](https://semver.org/spec/v2.0.0.h
|
|||||||
|
|
||||||
[Unreleased]: https://gitea.emulab.it/Simone/nsis-plugin-ns7zip/compare/v2.2.1...HEAD
|
[Unreleased]: https://gitea.emulab.it/Simone/nsis-plugin-ns7zip/compare/v2.2.1...HEAD
|
||||||
[2.2.1]: https://gitea.emulab.it/Simone/nsis-plugin-ns7zip/compare/v2.2.0...v2.2.1
|
[2.2.1]: https://gitea.emulab.it/Simone/nsis-plugin-ns7zip/compare/v2.2.0...v2.2.1
|
||||||
|
[2.2.0]: https://gitea.emulab.it/Simone/nsis-plugin-ns7zip/compare/v2.1.0...v2.2.0
|
||||||
[2.1.0]: https://gitea.emulab.it/Simone/nsis-plugin-ns7zip/compare/v2.0.1...v2.1.0
|
[2.1.0]: https://gitea.emulab.it/Simone/nsis-plugin-ns7zip/compare/v2.0.1...v2.1.0
|
||||||
[2.0.1]: https://gitea.emulab.it/Simone/nsis-plugin-ns7zip/compare/v2.0.0...v2.0.1
|
[2.0.1]: https://gitea.emulab.it/Simone/nsis-plugin-ns7zip/compare/v2.0.0...v2.0.1
|
||||||
[2.0.0]: https://gitea.emulab.it/Simone/nsis-plugin-ns7zip/releases/tag/v2.0.0
|
[2.0.0]: https://gitea.emulab.it/Simone/nsis-plugin-ns7zip/releases/tag/v2.0.0
|
||||||
|
|||||||
Reference in New Issue
Block a user