From 83c7b78957e34bf29ad396474455270ef7ecb706 Mon Sep 17 00:00:00 2001 From: Myk Taylor Date: Tue, 24 Dec 2024 22:06:57 -0800 Subject: [PATCH] enable CI for stonesense repo --- .github/workflows/build.yml | 26 ++++++++++++++++++++++++++ .github/workflows/clean-cache.yml | 11 +++++++++++ 2 files changed, 37 insertions(+) create mode 100644 .github/workflows/build.yml create mode 100644 .github/workflows/clean-cache.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..c29ce6d4 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,26 @@ +name: Build + +on: [push, pull_request] + +jobs: + package-win64: + name: Windows + uses: DFHack/dfhack/.github/workflows/build-windows.yml@develop + with: + stonesense_repo: ${{ github.repository }} + stonesense_ref: ${{ github.ref }} + artifact-name: dfhack-windows64-build + cache-id: test + stonesense: true + secrets: inherit + + package-linux: + name: Linux + uses: DFHack/dfhack/.github/workflows/build-linux.yml@develop + with: + stonesense_repo: ${{ github.repository }} + stonesense_ref: ${{ github.ref }} + artifact-name: dfhack-linux64-build + cache-id: test + stonesense: true + secrets: inherit diff --git a/.github/workflows/clean-cache.yml b/.github/workflows/clean-cache.yml new file mode 100644 index 00000000..3439019d --- /dev/null +++ b/.github/workflows/clean-cache.yml @@ -0,0 +1,11 @@ +name: Clean up PR caches + +on: + pull_request_target: + types: + - closed + +jobs: + cleanup: + uses: DFHack/dfhack/.github/workflows/clean-cache.yml@develop + secrets: inherit