From b99c3fd8c55566565b96fd1da6ba686c39193ade Mon Sep 17 00:00:00 2001 From: MonoS Date: Wed, 7 May 2025 10:41:34 +0200 Subject: [PATCH 1/4] Add windows build workflow In theory, i hope it works, also switch to 32bit build i guess --- .github/workflows/build.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 129a055..339f4b5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -38,3 +38,17 @@ jobs: with: name: supmover-macos path: supmover + + build-windows: + runs-on: windows-2022 + + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Compile + shell: cmd + run: ${{ '"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat" && cl /nologo /O2 /Oi /Gy /GS /GL /fp:precise /EHsc /MD /Zc:inline /TP /analyze- /permissive- /Fesupmover.exe main.cpp' } + - uses: actions/upload-artifact@v3 + with: + name: supmover.exe + path: supmover From 3dae7931943853b03b7b628da4430c4886b550ca Mon Sep 17 00:00:00 2001 From: MonoS Date: Wed, 7 May 2025 10:43:36 +0200 Subject: [PATCH 2/4] Missing } in windows wf --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 339f4b5..8dd9524 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -47,7 +47,7 @@ jobs: uses: actions/checkout@v3 - name: Compile shell: cmd - run: ${{ '"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat" && cl /nologo /O2 /Oi /Gy /GS /GL /fp:precise /EHsc /MD /Zc:inline /TP /analyze- /permissive- /Fesupmover.exe main.cpp' } + run: ${{ '"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat" && cl /nologo /O2 /Oi /Gy /GS /GL /fp:precise /EHsc /MD /Zc:inline /TP /analyze- /permissive- /Fesupmover.exe main.cpp' }} - uses: actions/upload-artifact@v3 with: name: supmover.exe From 6c13f66ff6dfa8b5a530803011eb9a0c1a15f58c Mon Sep 17 00:00:00 2001 From: MonoS Date: Wed, 7 May 2025 10:48:22 +0200 Subject: [PATCH 3/4] Do I need to update to v4 actions? --- .github/workflows/build.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8dd9524..8e71c1f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,14 +12,14 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install dependencies run: sudo apt-get install -y make g++ - name: Compile run: make - name: Strip binary run: strip supmover - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: supmover-linux path: supmover @@ -29,12 +29,12 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Compile run: make - name: Strip binary run: strip supmover - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: supmover-macos path: supmover @@ -44,11 +44,11 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Compile shell: cmd run: ${{ '"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat" && cl /nologo /O2 /Oi /Gy /GS /GL /fp:precise /EHsc /MD /Zc:inline /TP /analyze- /permissive- /Fesupmover.exe main.cpp' }} - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: supmover.exe path: supmover From d5b069bf770ce67dd4e29bfc41cffab2f90c1c49 Mon Sep 17 00:00:00 2001 From: MonoS Date: Wed, 7 May 2025 10:52:03 +0200 Subject: [PATCH 4/4] fix upload-artifact parameters --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8e71c1f..149731c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -51,4 +51,4 @@ jobs: - uses: actions/upload-artifact@v4 with: name: supmover.exe - path: supmover + path: supmover.exe