i'm tired #9
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 | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/checkout@v3 | |
with: | |
repository: 'itsmattkc/msvc420' | |
path: msvc420 | |
- name: Setup cmake | |
uses: jwlawson/[email protected] | |
with: | |
# Use minimum supported version | |
cmake-version: '3.13.x' | |
- name: Build wrappers | |
shell: cmd | |
run: | | |
call .\msvc420\bin\VCVARS32.BAT x86 | |
cd wrappers | |
mkdir build | |
cd build | |
cmake .. -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release | |
cmake --build . | |
- name: Build installer | |
shell: cmd | |
run: | | |
setup\nsis\makensis.exe setup\dotnet95.nsi | |
- name: Upload Artifact | |
uses: actions/upload-artifact@master | |
with: | |
name: setup | |
path: | | |
setup/dotnet95.exe | |
- name: Upload Continuous Release | |
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository == 'itsmattkc/dotnet95' }} | |
shell: bash | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
TRAVIS_REPO_SLUG: itsmattkc/dotnet95 | |
TRAVIS_COMMIT: ${{ github.sha }} | |
run: | | |
/c/msys64/usr/bin/wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh | |
./upload.sh setup/dotnet95.exe |