From 33bac9add4557aac7407177c07be9d7e81986ad2 Mon Sep 17 00:00:00 2001
From: Hannes Lerchl <aytchell@users.noreply.github.com>
Date: Sun, 25 Aug 2024 10:45:59 +0200
Subject: [PATCH] Github workflow will store the windows exe (#96)

---
 .github/workflows/build.yaml | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index c26d1d0..d86aac3 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -18,6 +18,8 @@ jobs:
           platform: x64
       - name: Compile Molybdenum
         run: make
+      - name: Benchmarking
+        run: build/Molybdenum bench
       - name: Compile Datagen
         run: make datagen
   build_windows:
@@ -31,6 +33,17 @@ jobs:
           version: latest
           platform: x64
       - name: Compile Molybdenum
-        run: make
+        run: |
+          make
+          cd build
+          ren Molybdenum Molybdenum.exe
+      - name: Benchmarking
+        run: build/Molybdenum bench
+      - name: Upload Molybdenum (Win x64)
+        uses: actions/upload-artifact@v4
+        with:
+          name: Molybdenum-${{ github.sha }}.exe
+          path: build/Molybdenum.exe
+          retention-days: 3
       - name: Compile Datagen
         run: make datagen