Skip to content

Merge pull request #389 from Mr-Auto/color #947

Merge pull request #389 from Mr-Auto/color

Merge pull request #389 from Mr-Auto/color #947

Workflow file for this run

name: Whip Build
on:
push:
branches: [main]
workflow_dispatch:
jobs:
build:
name: Build
runs-on: windows-latest
steps:
- uses: llvm/actions/install-ninja@main
- name: Install llvm 17
run: choco install llvm --version 17.0.6 --allow-downgrade -y
- uses: actions/checkout@v2
with:
fetch-depth: 1
submodules: true
- name: Remove Strawberry Perl from PATH
run: |
$env:PATH = $env:PATH -replace "C:\\Strawberry\\c\\bin;", ""
"PATH=$env:PATH" | Out-File -FilePath $env:GITHUB_ENV -Append
- name: Get tags for release notes
shell: bash
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: Build
run: |
mkdir build
cd build
cmake .. -DBUILD_INFO_DUMP=OFF -DBUILD_SPEL2_DLL=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -GNinja
cmake --build . --config Release
- name: Create artifacts
run: |
mkdir Overlunky
move build\bin\Overlunky.dll Overlunky\Overlunky.dll
move build\bin\Overlunky.exe Overlunky\Overlunky.exe
move README.md Overlunky\README.txt
move examples Overlunky\Scripts
7z a Overlunky_WHIP.zip Overlunky\
- name: Create WHIP release
uses: marvinpinto/action-automatic-releases@v1.1.0
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "whip"
prerelease: false
title: "WHIP Build"
files: |
Overlunky_WHIP.zip
Overlunky/Overlunky.exe
Overlunky/Overlunky.dll