From c797e5b2d21e7090f031b8998101f3d1614d1d8f Mon Sep 17 00:00:00 2001 From: Myk Taylor Date: Sat, 29 Jul 2023 14:03:50 -0700 Subject: [PATCH] poke at a native windows build and see what happens --- .github/workflows/build.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cfa238862..c182296c5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -186,6 +186,31 @@ jobs: name: dfhack-linux64-build-${{ steps.artifactname.outputs.name }} path: build/output/* + package-win64: + name: Win64 package (native) + runs-on: windows-latest + steps: + - name: Clone DFHack + uses: actions/checkout@v3 + with: + submodules: true + fetch-depth: 0 + - name: Configure DFHack + run: | + cmake -S . -B build -G "Visual Studio 17 2022" -DCMAKE_INSTALL_PREFIX=build/image + - name: Build DFHack + run: | + cmake --build build --config Release --target install + - name: Format artifact name + id: artifactname + run: | + echo name=$(date +%Y%m%d)-$(git rev-parse --short HEAD) >> $GITHUB_OUTPUT + - name: Upload artifact + uses: actions/upload-artifact@v3 + with: + name: dfhack-win64-build-${{ steps.artifactname.outputs.name }} + path: build/image/* + build-cross-win64: name: Win64 package runs-on: ubuntu-22.04