From 7c44993f702be72f46f9644a66f75c8ec0ffd51e Mon Sep 17 00:00:00 2001 From: ZeWaka Date: Thu, 12 Sep 2024 23:41:13 -0700 Subject: [PATCH] add github workflow --- .github/workflows/build.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..b4324ec --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,25 @@ +name: Build and Upload DLL + +on: [push, pull_request] + +jobs: + build: + runs-on: windows-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Visual Studio + uses: ilammy/msvc-dev-cmd@v1 + with: + arch: x64 + + - name: Build DLL + run: cl.exe /nologo /std:c11 /O2 /LD /DNDEBUG prof.c ws2_32.lib /Fe:prof.dll + + - name: Upload prof.dll + uses: actions/upload-artifact@v4 + with: + name: prof-dll + path: prof.dll \ No newline at end of file