build_radiodelay #46
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: build_radiodelay | |
on: | |
workflow_dispatch: | |
jobs: | |
windows: | |
runs-on: windows-latest | |
outputs: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
defaults: | |
run: | |
shell: C:\msys64\usr\bin\bash.exe --login -eo pipefail "{0}" | |
env: | |
MSYSTEM: MINGW64 | |
CHERE_INVOKING: 1 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install packages | |
run: pacman -S --needed --noconfirm mingw-w64-x86_64-fltk make mingw-w64-x86_64-gcc mingw-w64-x86_64-binutils zip | |
- name: Make | |
run: make windows | |
- name: Set current date | |
id: date | |
run: echo "::set-output name=date::$(date +'%Y-%m-%d')" | |
- name: Create release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ steps.date.outputs.date }} | |
release_name: Release ${{ steps.date.outputs.date }} | |
draft: false | |
prerelease: false | |
- name: Upload release zip | |
id: upload-release-asset | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: RadioDelay-Windows-x64.zip | |
asset_name: RadioDelay-Windows-x64.zip | |
asset_content_type: application/zip | |
- name: Upload release setup exe | |
id: upload-release-asset-setup | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: RadioDelay-Windows-x64-Setup.exe | |
asset_name: RadioDelay-Windows-x64-Setup.exe | |
asset_content_type: application/exe | |
macos-x64: | |
runs-on: macos-13 | |
needs: windows | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install packages | |
run: | | |
brew install fltk | |
- name: Make | |
run: make macos | |
- name: Upload release setup dmg | |
id: upload-release-asset-setup | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ needs.windows.outputs.upload_url }} | |
asset_path: RadioDelay-MacOS.dmg | |
asset_name: RadioDelay-MacOS-x86_64.dmg | |
asset_content_type: application/octet-stream | |
macos-arm64: | |
runs-on: macos-14 | |
needs: windows | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install packages | |
run: | | |
brew install fltk | |
- name: Make | |
run: make macos | |
- name: Upload release setup dmg | |
id: upload-release-asset-setup | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ needs.windows.outputs.upload_url }} | |
asset_path: RadioDelay-MacOS.dmg | |
asset_name: RadioDelay-MacOS-arm64.dmg | |
asset_content_type: application/octet-stream |