Moved to posix compiler in Windows version #14
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: C/C++ CI | |
on: | |
push: | |
tags: | |
- "v*" | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Packages | |
run: apt-get update && apt-get install -y mingw-w64 zip cmake | |
- name: Initializing submodules | |
run: git submodule update --init | |
- name: Build linux release | |
run: cmake -B . && make | |
- name: Build windows release | |
run: rm -rf CMakeFiles ; rm -rf */CMakeFiles ; rm -rf */*/CMakeFiles && cmake -DCMAKE_TOOLCHAIN_FILE="tc-win64.cmake" -B . && make | |
- name: Set env | |
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV | |
- name: Generate release | |
run: | | |
cd bin | |
zip ziso_${{ env.RELEASE_VERSION }}_linux.zip ziso | |
zip ziso_${{ env.RELEASE_VERSION }}_win64.zip ziso.exe | |
- name: Upload assets | |
uses: marvinpinto/[email protected] | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
prerelease: false | |
files: | | |
bin/*.zip |