2020-05-23 17:13:01 +00:00
name : Release
on :
push :
tags :
- v*
jobs :
release :
name : Release
runs-on : ubuntu-latest
steps :
2024-04-28 10:48:24 +00:00
- uses : actions/checkout@v4
2020-05-26 07:02:48 +00:00
2020-05-23 17:13:01 +00:00
- name : Get Git tag
2021-01-12 18:54:35 +00:00
run : echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
2020-05-23 17:13:01 +00:00
- name : Create distribution source tarball
run : |
libtoolize
autoreconf --install
./configure
make dist
2024-06-28 18:41:00 +00:00
- name : Download macOS x86_64 artifacts
2024-04-28 10:48:24 +00:00
uses : dawidd6/action-download-artifact@v3
2020-05-23 17:13:01 +00:00
with :
github_token : ${{ secrets.GITHUB_TOKEN }}
2024-07-31 17:47:57 +00:00
workflow : build_macos.yml
2020-05-23 17:13:01 +00:00
commit : ${{ github.sha }}
2024-06-28 18:41:00 +00:00
name : macos-x86_64
path : macos-x86_64
2020-05-23 17:13:01 +00:00
2024-06-28 18:41:00 +00:00
- name : Download macOS AArch64 artifacts
uses : dawidd6/action-download-artifact@v3
with :
github_token : ${{ secrets.GITHUB_TOKEN }}
2024-07-31 17:47:57 +00:00
workflow : build_macos.yml
2024-06-28 18:41:00 +00:00
commit : ${{ github.sha }}
name : macos-aarch64
path : macos-aarch64
- name : Download Windows ix86 artifacts
2024-04-28 10:48:24 +00:00
uses : dawidd6/action-download-artifact@v3
2020-05-23 17:13:01 +00:00
with :
github_token : ${{ secrets.GITHUB_TOKEN }}
2024-07-31 17:47:57 +00:00
workflow : build_windows.yml
2020-05-23 17:13:01 +00:00
commit : ${{ github.sha }}
2024-06-28 18:41:00 +00:00
name : windows-ix86
path : windows-ix86
2020-05-23 17:13:01 +00:00
2024-06-28 18:41:00 +00:00
- name : Download Windows x86_64 artifacts
2024-04-28 10:48:24 +00:00
uses : dawidd6/action-download-artifact@v3
2020-05-23 17:13:01 +00:00
with :
github_token : ${{ secrets.GITHUB_TOKEN }}
2024-07-31 17:47:57 +00:00
workflow : build_windows.yml
2020-05-23 17:13:01 +00:00
commit : ${{ github.sha }}
2024-08-26 09:24:28 +00:00
name : windows-x86_64
path : windows-x86_64
2020-05-23 17:13:01 +00:00
- name : Compress artifacts
run : |
2024-06-28 18:41:00 +00:00
for dir in macos-* windows-*; do
2020-05-23 17:13:01 +00:00
zip -r "libcpuid-$VERSION-$dir.zip" "$dir"
done
env :
VERSION : ${{ env.VERSION }}
- name : Create release
uses : ncipollo/release-action@v1
with :
token : "${{ secrets.GITHUB_TOKEN }}"
draft : true
prerelease : false
body : |
This is an **official** release.
Brief info of changes between the releases can be found in the [ChangeLog](https://github.com/anrieff/libcpuid/blob/master/ChangeLog).
As a convenience, the following binaries are provided :
- A source tarball;
2024-06-28 18:41:00 +00:00
- Build for x86_64 macOS (built under [macOS 13.X](https://github.com/actions/runner-images/blob/main/images/macos/macos-13-Readme.md));
- Build for AArch64 macOS (built under [macOS 14.X](https://github.com/actions/runner-images/blob/main/images/macos/macos-14-Readme.md));
- Build for ix86 Windows, using MSVC XX.XX, in Debug, Release and Release DLL configurations (built under [Windows Server 2022](https://github.com/actions/runner-images/blob/main/images/windows/Windows2022-Readme.md));
- Build for x86_64 Windows, using MSVC XX.XX, in Debug, Release and Release DLL configurations (built under [Windows Server 2022](https://github.com/actions/runner-images/blob/main/images/windows/Windows2022-Readme.md)).
2024-08-26 09:24:28 +00:00
artifacts : "libcpuid-${{ env.VERSION }}.tar.gz,libcpuid-${{ env.VERSION }}-macos-x86_64.zip,libcpuid-${{ env.VERSION }}-macos-aarch64.zip,libcpuid-${{ env.VERSION }}-windows-ix86.zip,libcpuid-${{ env.VERSION }}-windows-x86_64.zip"