Fix spelling mistakes (#12) #25
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 and publish | |
# run on pushes to master OR on version tag creation | |
on: | |
push: | |
branches: | |
- master | |
tags: | |
- v* | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install CMake | |
uses: lukka/get-cmake@latest | |
- name: Build | |
uses: lukka/run-cmake@v10 | |
with: | |
configurePreset: x64-windows | |
buildPreset: Release | |
- name: ZIP embedding tools | |
working-directory: build/bin/Release | |
run: | | |
7z a -tzip -mx=9 -r embedding_tools.zip fumo_encoder.exe fumo_generator.exe initial_loader.bin stage1.dll | |
- name: Publish release (version tag) | |
if: startsWith(github.ref, 'refs/tags/v') | |
uses: marvinpinto/action-automatic-releases@latest | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
prerelease: false | |
draft: true | |
files: | | |
build/bin/Release/fumo.exe | |
build/bin/Release/fumo_encoder.exe | |
build/bin/Release/embedding_tools.zip | |
- name: Publish pre-release (push to master) | |
if: github.ref == 'refs/heads/master' | |
uses: marvinpinto/action-automatic-releases@latest | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
automatic_release_tag: latest | |
title: Development build | |
prerelease: true | |
files: | | |
build/bin/Release/fumo.exe | |
build/bin/Release/fumo_encoder.exe | |
build/bin/Release/embedding_tools.zip |