1
0
Fork 0
mirror of https://github.com/anrieff/libcpuid synced 2024-12-16 16:35:45 +00:00
libcpuid/.github/workflows/release.yml
The Tumultuous Unicorn Of Darkness 2e36c373c0
CI: update release notes
2023-04-02 18:57:15 +02:00

76 lines
2.5 KiB
YAML

name: Release
on:
push:
tags:
- v*
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get Git tag
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
- name: Create distribution source tarball
run: |
libtoolize
autoreconf --install
./configure
make dist
- name: Download macOS artifacts
uses: dawidd6/action-download-artifact@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
workflow: unix.yml
commit: ${{ github.sha }}
name: macos
path: macos
- name: Download Windows (32-bit) artifacts
uses: dawidd6/action-download-artifact@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
workflow: windows.yml
commit: ${{ github.sha }}
name: win32
path: win32
- name: Download Windows (64-bit) artifacts
uses: dawidd6/action-download-artifact@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
workflow: windows.yml
commit: ${{ github.sha }}
name: win64
path: win64
- name: Compress artifacts
run: |
for dir in macos win32 win64; do
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;
- Build for 64-bit macOS (built under [macOS 12.X](https://github.com/actions/runner-images/blob/main/images/macos/macos-12-Readme.md));
- Build for 32-bit 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/win/Windows2022-Readme.md));
- Build for 64-bit 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/win/Windows2022-Readme.md)).
artifacts: "libcpuid-${{ env.VERSION }}.tar.gz,libcpuid-${{ env.VERSION }}-macos.zip,libcpuid-${{ env.VERSION }}-win32.zip,libcpuid-${{ env.VERSION }}-win64.zip"