From b7dc71b37986f8105bfdebfbe69b7ef69fc6d3ea Mon Sep 17 00:00:00 2001 From: Nils Date: Wed, 27 Aug 2025 11:48:09 +0200 Subject: [PATCH] pre release ci workflow --- .github/workflows/pre-release.yml | 71 +++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 .github/workflows/pre-release.yml diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml new file mode 100644 index 0000000..e0d80f7 --- /dev/null +++ b/.github/workflows/pre-release.yml @@ -0,0 +1,71 @@ +name: Pre-release + +on: + workflow_dispatch: + +jobs: + build: + name: Build + # https://github.com/actions/virtual-environments/ + runs-on: ubuntu-22.04 + steps: + + - name: 🛎️ Checkout + uses: actions/checkout@v5 + + # https://github.com/marketplace/actions/setup-go-environment + - name: 🔧 Setup go + uses: actions/setup-go@v5 + + - name: 🍳 Build + run: make + + - name: 🌡️ Test + run: ./offline-map-tile-downloader --help + + # Upload binaries + # https://github.com/marketplace/actions/upload-a-build-artifact + - name: 📤 Upload + uses: actions/upload-artifact@v4 + with: + name: offline-map-tile-downloader-artifact + path: offline-map-tile-downloader-* + retention-days: 1 + + test-linux: + name: Test Linux + needs: build + runs-on: ubuntu-latest + steps: + # Download binaries + # https://github.com/marketplace/actions/download-a-build-artifact + - name: 📥 Download + uses: actions/download-artifact@v5 + with: + name: offline-map-tile-downloader-artifact + - name: 🌡️ Test + run: chmod +x offline-map-tile-downloader-linux-x86_64 && ./offline-map-tile-downloader-linux-x86_64 --help + + test-macos: + name: Test macOS + needs: build + runs-on: macos-latest + steps: + - name: 📥 Download + uses: actions/download-artifact@v5 + with: + name: offline-map-tile-downloader-artifact + - name: 🌡️ Test + run: chmod +x offline-map-tile-downloader-macos-x86_64 && ./offline-map-tile-downloader-macos-x86_64 --help + + test-windows: + name: Test Windows + needs: build + runs-on: windows-latest + steps: + - name: 📥 Download + uses: actions/download-artifact@v5 + with: + name: offline-map-tile-downloader-artifact + - name: 🌡️ Test + run: .\offline-map-tile-downloader-windows-x86_64.exe --help