From 20dddbe02a53f2cc952231c90e0f46fa12299e2b Mon Sep 17 00:00:00 2001 From: iTrooz Date: Tue, 26 Jul 2022 19:04:50 +0200 Subject: [PATCH] add other build types --- .github/workflows/build.yml | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0c7a8f1c..ae825224 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,6 +9,20 @@ on: jobs: build: + + strategy: + matrix: + include: + - arch: x64 + folder: x64 + - arch: x86 + folder: x86 + - arch: amd64_arm64 + folder: aarch64 + - arch: amd64_arm + folder: arm + + name: Build for ${{ matrix.folder }} runs-on: windows-latest steps: @@ -16,6 +30,8 @@ jobs: uses: actions/checkout@v3 - uses: ilammy/msvc-dev-cmd@v1 + with: + arch: ${{ matrix.arch }} - name: Prepare build run: cmake -B build @@ -26,16 +42,16 @@ jobs: - name: Prepare files run: | mkdir upload - mkdir upload\x64 + mkdir upload\${{ matrix.folder }} copy src/btrfs.inf upload - copy build\Release\ubtrfs.dll upload\x64 - copy build\Release\shellbtrfs.dll upload\x64 - copy build\Release\mkbtrfs.exe upload\x64 - copy build\Release\btrfs.sys upload\x64 + copy build\Release\ubtrfs.dll upload\${{ matrix.folder }} + copy build\Release\shellbtrfs.dll upload\${{ matrix.folder }} + copy build\Release\mkbtrfs.exe upload\${{ matrix.folder }} + copy build\Release\btrfs.sys upload\${{ matrix.folder }} - name: Upload files uses: actions/upload-artifact@v3 with: name: btrfs - path: upload/* \ No newline at end of file + path: upload/*