fix: write output file streams as binary #34
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: | |
- '*' | |
workflow_dispatch: | |
jobs: | |
linux: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- name: Configure CMake | |
run: cmake -Bbuild | |
- name: Build | |
run: cmake --build build | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: Linux Release | |
path: | | |
build/bin/wwtools | |
build/lib/libwwtools.so | |
build/lib/libwwtools.a | |
windows: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- name: Configure CMake | |
run: cmake -G "Visual Studio 17 2022" -B build | |
- name: Build | |
run: cmake --build build --config Release | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: Windows Release | |
# For some reason the dynamic lib is in the bin directory | |
path: | | |
build/bin/Release/wwtools.exe | |
build/bin/Release/wwtools.dll | |
build/lib/Release/wwtools.lib | |
release: | |
runs-on: ubuntu-latest | |
needs: [linux, windows] | |
steps: | |
- name: Download artifacts | |
uses: actions/download-artifact@v2 | |
- name: List stuff | |
run: ls -R | |
- name: Release | |
uses: ncipollo/release-action@v1 | |
with: | |
draft: true | |
generateReleaseNotes: true | |
artifacts: "*Release/**/*" | |
token: ${{ secrets.GITHUB_TOKEN }} | |