Skip to content

Commit cf61ac4

Browse files
committed
change workflows
1 parent f2edd23 commit cf61ac4

2 files changed

Lines changed: 24 additions & 38 deletions

File tree

Original file line numberDiff line numberDiff line change
@@ -1,19 +1,31 @@
11
name: Build with WDK 7.1.0
22

3-
on: workflow_dispatch
3+
on:
4+
workflow_dispatch:
5+
workflow_call:
46

57
jobs:
68
build:
9+
name: Build
710
runs-on: windows-latest
811

912
steps:
10-
- name: Download WDK 7.1.0
13+
- name: Cache ISO
14+
id: cache-wdk
15+
uses: actions/cache@v3
16+
env:
17+
cache-name: cache-wdk-7.1.0
18+
with:
19+
path: ${{ github.workspace }}\GRMWDK_EN_7600_1.ISO
20+
key: ${{ env.cache-name }}
21+
- if: ${{ steps.cache-wdk.outputs.cache-hit != 'true' }}
22+
name: Download WDK 7.1.0.7600
1123
run: (New-Object Net.WebClient).DownloadFile("https://download.microsoft.com/download/4/A/2/4A25C7D5-EFBE-4182-B6A9-AE6850409A78/GRMWDK_EN_7600_1.ISO", "${{ github.workspace }}\GRMWDK_EN_7600_1.ISO")
1224
- name: Install 7zip
1325
run: choco install 7zip
1426
- name: Unpack ISO
1527
run: 7z.exe x -y -o"${{ github.workspace }}" "${{ github.workspace }}\GRMWDK_EN_7600_1.ISO"
16-
- name: Setup WDK 7.1.0
28+
- name: Setup WDK 7.1.0.7600
1729
run: .\KitSetup.exe /install ALL /ui-level EXPRESS
1830
shell: cmd
1931
- name: Checkout code
@@ -24,10 +36,13 @@ jobs:
2436
run: |
2537
C:\WinDDK\7600.16385.1\bin\setenv.bat C:\WinDDK\7600.16385.1 fre WXP && D: && cd ${{ github.workspace }}\srcdir && build /g /w
2638
shell: cmd
27-
- name: Upload artefact
39+
- name: Upload artifact
2840
uses: actions/upload-artifact@v4
2941
with:
30-
name: Executable
31-
path: ${{ github.workspace }}\srcdir\objfre_wxp_x86\i386\native.exe
42+
name: nativeshell
43+
path: |
44+
${{ github.workspace }}\srcdir\objfre_wxp_x86\i386\native.exe
45+
${{ github.workspace }}\srcdir\install\*
46+
${{ github.workspace }}\srcdir\README.md
3247
retention-days: 1
33-
48+

.github/workflows/release.yml

Lines changed: 2 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -7,36 +7,7 @@ on:
77

88
jobs:
99
build:
10-
name: Build
11-
runs-on: windows-latest
12-
13-
steps:
14-
- name: Download WDK 7.1.0.7600
15-
run: (New-Object Net.WebClient).DownloadFile("https://download.microsoft.com/download/4/A/2/4A25C7D5-EFBE-4182-B6A9-AE6850409A78/GRMWDK_EN_7600_1.ISO", "${{ github.workspace }}\GRMWDK_EN_7600_1.ISO")
16-
- name: Install 7zip
17-
run: choco install 7zip
18-
- name: Unpack ISO
19-
run: 7z.exe x -y -o"${{ github.workspace }}" "${{ github.workspace }}\GRMWDK_EN_7600_1.ISO"
20-
- name: Setup WDK 7.1.0.7600
21-
run: .\KitSetup.exe /install ALL /ui-level EXPRESS
22-
shell: cmd
23-
- name: Checkout code
24-
uses: actions/checkout@v4
25-
with:
26-
path: 'srcdir'
27-
- name: Build project
28-
run: |
29-
C:\WinDDK\7600.16385.1\bin\setenv.bat C:\WinDDK\7600.16385.1 fre WXP && D: && cd ${{ github.workspace }}\srcdir && build /g /w
30-
shell: cmd
31-
- name: Upload artifact
32-
uses: actions/upload-artifact@v4
33-
with:
34-
name: nativeshell
35-
path: |
36-
${{ github.workspace }}\srcdir\objfre_wxp_x86\i386\native.exe
37-
${{ github.workspace }}\srcdir\install\*
38-
${{ github.workspace }}\srcdir\README.md
39-
retention-days: 1
10+
uses: ./.github/workflows/build.yml
4011

4112
release:
4213
needs: build
@@ -70,7 +41,7 @@ jobs:
7041
with:
7142
upload_url: ${{ steps.create_release.outputs.upload_url }}
7243
asset_path: ${{ github.workspace }}/nativeshell.zip
73-
asset_name: nativeshell.winxp-i386.zip
44+
asset_name: nativeshell.i386.zip
7445
asset_content_type: application/zip
7546

7647

0 commit comments

Comments
 (0)