test: Test Archive #5
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: CMake | |
on: [push] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup | |
uses: ilammy/[email protected] | |
with: | |
arch: x86 | |
- name: Cache bin | |
id: cache-bin | |
uses: actions/cache@v3 | |
with: | |
path: bin | |
key: ${{ runner.os }}-bin | |
- name: Create bin folder | |
if: steps.cache-bin.outputs.cache-hit != 'true' | |
run: | | |
mkdir bin | |
cd bin | |
cmake -G "Ninja" -DCMAKE_BUILD_TYPE=Release ../ | |
mkdir output_SA | |
- name: Compile | |
run: | | |
cd bin | |
ninja | |
cp TrilogyChaosMod.SA.asi output_SA/TrilogyChaosMod.SA.asi | |
- name: Upload SA | |
uses: actions/upload-artifact@v1 | |
with: | |
name: "TrilogyChaosMod.SA" | |
path: bin/output_SA | |
- name: Move ASI for Upload | |
run: | | |
mv bin/output_SA/TrilogyChaosMod.SA.asi . | |
- name: Release | |
uses: thedoctor0/[email protected] | |
with: | |
type: 'zip' | |
filename: 'release.zip' | |
exclusions: '*.git* /*node_modules/* .editorconfig cmake lib src test CMakeLists.txt README.md CONTRIBUTING.md .gitignore .clang-format' |