From ffa2d82d940de2cd51ea2e85c3987b0723f5b26d Mon Sep 17 00:00:00 2001 From: TaurusXin Date: Wed, 7 Feb 2024 15:03:52 +0800 Subject: [PATCH] feat: GitHub CI --- .github/workflows/autobuild.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/autobuild.yml diff --git a/.github/workflows/autobuild.yml b/.github/workflows/autobuild.yml new file mode 100644 index 0000000..379f7f3 --- /dev/null +++ b/.github/workflows/autobuild.yml @@ -0,0 +1,31 @@ +name: CI + +on: + push: + branches: [ main ] + +jobs: + build_on_windows: + runs-on: windows-latest + + defaults: + run: + shell: msys2 {0} + + steps: + - uses: actions/checkout@v2 + + - name: Install dependencies + run: | + pacman -Syu --noconfirm + pacman -S --noconfirm mingw-w64-ucrt-x86_64-toolchain + echo "C:\msys64\mingw64\bin" >> $GITHUB_PATH + + - name: Build + run: mingw32-make win32 + + - name: Upload artifact + uses: actions/upload-artifact@v2 + with: + name: ncmdump-artifacts + path: ncmdump.exe \ No newline at end of file