Skip to content

Commit 20dddbe

Browse files
committed
add other build types
1 parent fdc7742 commit 20dddbe

File tree

1 file changed

+22
-6
lines changed

1 file changed

+22
-6
lines changed

.github/workflows/build.yml

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,29 @@ on:
99

1010
jobs:
1111
build:
12+
13+
strategy:
14+
matrix:
15+
include:
16+
- arch: x64
17+
folder: x64
18+
- arch: x86
19+
folder: x86
20+
- arch: amd64_arm64
21+
folder: aarch64
22+
- arch: amd64_arm
23+
folder: arm
24+
25+
name: Build for ${{ matrix.folder }}
1226
runs-on: windows-latest
1327

1428
steps:
1529
- name: Get Sources
1630
uses: actions/checkout@v3
1731

1832
- uses: ilammy/msvc-dev-cmd@v1
33+
with:
34+
arch: ${{ matrix.arch }}
1935

2036
- name: Prepare build
2137
run: cmake -B build
@@ -26,16 +42,16 @@ jobs:
2642
- name: Prepare files
2743
run: |
2844
mkdir upload
29-
mkdir upload\x64
45+
mkdir upload\${{ matrix.folder }}
3046
3147
copy src/btrfs.inf upload
32-
copy build\Release\ubtrfs.dll upload\x64
33-
copy build\Release\shellbtrfs.dll upload\x64
34-
copy build\Release\mkbtrfs.exe upload\x64
35-
copy build\Release\btrfs.sys upload\x64
48+
copy build\Release\ubtrfs.dll upload\${{ matrix.folder }}
49+
copy build\Release\shellbtrfs.dll upload\${{ matrix.folder }}
50+
copy build\Release\mkbtrfs.exe upload\${{ matrix.folder }}
51+
copy build\Release\btrfs.sys upload\${{ matrix.folder }}
3652
3753
- name: Upload files
3854
uses: actions/upload-artifact@v3
3955
with:
4056
name: btrfs
41-
path: upload/*
57+
path: upload/*

0 commit comments

Comments
 (0)