Add release action #13
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
tags: | |
- "v*.*.*" | |
jobs: | |
release_macos_arm64: | |
runs-on: macos-14 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build | |
run: | | |
make TARGET="-target arm64-apple-macos11" | |
zip -j superfamiconv_macos_arm64_${{ github.ref_name }}.zip bin/superfamiconv README.md LICENSE | |
- name: Release | |
uses: softprops/action-gh-release@v2 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: superfamiconv_macos_arm64_${{ github.ref_name }}.zip | |
release_macos_x86_64: | |
runs-on: macos-14 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build | |
run: | | |
make TARGET="-target x86_64-apple-macos11" | |
zip -j superfamiconv_macos_x86-64_${{ github.ref_name }}.zip bin/superfamiconv README.md LICENSE | |
- name: Release | |
uses: softprops/action-gh-release@v2 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: superfamiconv_macos_x86-64_${{ github.ref_name }}.zip | |
release_win64: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build | |
run: | | |
mkdir build && cd build && cmake .. && cmake --build . --config Release && cd .. | |
move build\Release\superfamiconv.exe superfamiconv.exe | |
Compress-Archive -LiteralPath superfamiconv.exe, README.md, LICENSE -DestinationPath superfamiconv_win64_${{ github.ref_name }}.zip | |
- name: Release | |
uses: softprops/action-gh-release@v2 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: superfamiconv_win64_${{ github.ref_name }}.zip |