2020-05-23 17:13:01 +00:00
|
|
|
name: Release
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- v*
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
release:
|
|
|
|
name: Release
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2022-10-23 15:26:13 +00:00
|
|
|
- uses: actions/checkout@v3
|
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
|
|
|
|
|
|
|
|
- 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 10.15);
|
|
|
|
- Build for 32-bit Windows, using MSVC 16.5, in Debug, Release and Release DLL configurations;
|
|
|
|
- Build for 64-bit Windows, using MSVC 16.5, in Debug, Release and Release DLL configurations.
|
|
|
|
artifacts: "libcpuid-${{ env.VERSION }}.tar.gz,libcpuid-${{ env.VERSION }}-macos.zip,libcpuid-${{ env.VERSION }}-win32.zip,libcpuid-${{ env.VERSION }}-win64.zip"
|