From 12dbd9a099f2cb00cce386f53a6529235d172edc Mon Sep 17 00:00:00 2001 From: iTrooz_ Date: Tue, 26 Jul 2022 17:58:43 +0200 Subject: [PATCH] Added CI --- .github/workflows/build.yml | 41 +++++++++++++++++++++++++++++++++++++ 1 file changed, 41 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 00000000..7e20b047 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,41 @@ +name: Build CI + +on: + push: + branches: ["*"] + pull_request: + branches: ["*"] + workflow_dispatch: + +jobs: + build: + runs-on: windows-latest + + steps: + - name: Get Sources + uses: actions/checkout@v3 + + - uses: ilammy/msvc-dev-cmd@v1 + + - name: Prepare build + run: cmake -B build + + - name: Build + run: cmake --build build -j 3 + + - name: Prepare files + run: | + mkdir upload + mkdir upload\x64 + + copy src/btrfs.inf upload + copy build\Debug\ubtrfs.dll upload\x64 + copy build\Debug\shellbtrfs.dll upload\x64 + copy build\Debug\mkbtrfs.exe upload\x64 + copy build\Debug\btrfs.sys upload\x64 + + - name: Upload files + uses: actions/upload-artifact@v3 + with: + name: btrfs + path: upload/* \ No newline at end of file