name: Release on: push: tags: - v* workflow_dispatch: jobs: release: name: Release runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - 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 x86_64 artifacts uses: dawidd6/action-download-artifact@v6 with: github_token: ${{ secrets.GITHUB_TOKEN }} workflow: build_macos.yml commit: ${{ github.sha }} name: macos-x86_64 path: macos-x86_64 - name: Download macOS AArch64 artifacts uses: dawidd6/action-download-artifact@v6 with: github_token: ${{ secrets.GITHUB_TOKEN }} workflow: build_macos.yml commit: ${{ github.sha }} name: macos-aarch64 path: macos-aarch64 - name: Download Windows ix86 artifacts uses: dawidd6/action-download-artifact@v6 with: github_token: ${{ secrets.GITHUB_TOKEN }} workflow: build_windows.yml commit: ${{ github.sha }} name: windows-ix86 path: windows-ix86 - name: Download Windows x86_64 artifacts uses: dawidd6/action-download-artifact@v6 with: github_token: ${{ secrets.GITHUB_TOKEN }} workflow: build_windows.yml commit: ${{ github.sha }} name: windows-x86_64 path: windows-x86_64 - name: Compress artifacts run: | ls -l for dir in macos-* windows-*; 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 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)). 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"