Skip to content

Commit 125657e

Browse files
authored
fix: ci file extraction
1 parent 339b4d6 commit 125657e

File tree

3 files changed

+18
-45
lines changed

3 files changed

+18
-45
lines changed

.github/workflows/build.yml

+6-15
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,12 @@ jobs:
2727
- name: Setup MSBuild
2828
uses: microsoft/setup-msbuild@v1
2929

30-
- name: Download references
31-
uses: carlosperate/[email protected]
32-
with:
33-
file-url: 'https://misaka-zerotwo.github.io/SL-References/Master.zip'
34-
file-name: 'References.zip'
35-
36-
- name: Download 7zip
37-
uses: carlosperate/[email protected]
38-
with:
39-
file-url: 'https://www.exiled.host/7za.exe'
40-
file-name: '7zip.exe'
41-
42-
- name: Extract Refs
43-
run: ./7zip.exe e References.zip -oD:\a\KillLogs\KillLogs\lib\ -r -y
44-
30+
- name: Get references
31+
shell: pwsh
32+
run: |
33+
Invoke-WebRequest -Uri https://misaka-zerotwo.github.io/SL-References/Master.zip -OutFile ${{ github.workspace }}/References.zip
34+
Expand-Archive -Path References.zip -DestinationPath ${{ github.workspace }}\lib
35+
4536
- name: Build
4637
run: msbuild KillLogs.sln -p:Configuration=release
4738
env:

.github/workflows/codeql-analysis.yml

+6-15
Original file line numberDiff line numberDiff line change
@@ -49,21 +49,12 @@ jobs:
4949
- name: Setup MSBuild
5050
uses: microsoft/setup-msbuild@v1
5151

52-
- name: Download references
53-
uses: carlosperate/[email protected]
54-
with:
55-
file-url: 'https://misaka-zerotwo.github.io/SL-References/Master.zip'
56-
file-name: 'References.zip'
57-
58-
- name: Download 7zip
59-
uses: carlosperate/[email protected]
60-
with:
61-
file-url: 'https://www.exiled.host/7za.exe'
62-
file-name: '7zip.exe'
63-
64-
- name: Extract Refs
65-
run: ./7zip.exe e References.zip -o${{ github.workspace }}\lib\ -r -y
66-
52+
- name: Get references
53+
shell: pwsh
54+
run: |
55+
Invoke-WebRequest -Uri https://misaka-zerotwo.github.io/SL-References/Master.zip -OutFile ${{ github.workspace }}/References.zip
56+
Expand-Archive -Path References.zip -DestinationPath ${{ github.workspace }}\lib
57+
6758
# Initializes the CodeQL tools for scanning.
6859
- name: Initialize CodeQL
6960
uses: github/codeql-action/init@v1

.github/workflows/release.yml

+6-15
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,12 @@ jobs:
2222
- name: Setup MSBuild
2323
uses: microsoft/setup-msbuild@v1
2424

25-
- name: Download references
26-
uses: carlosperate/[email protected]
27-
with:
28-
file-url: 'https://misaka-zerotwo.github.io/SL-References/Master.zip'
29-
file-name: 'References.zip'
30-
31-
- name: Download 7zip
32-
uses: carlosperate/[email protected]
33-
with:
34-
file-url: 'https://www.exiled.host/7za.exe'
35-
file-name: '7zip.exe'
36-
37-
- name: Extract Refs
38-
run: ./7zip.exe e References.zip -oD:\a\KillLogs\KillLogs\lib\ -r -y
39-
25+
- name: Get references
26+
shell: pwsh
27+
run: |
28+
Invoke-WebRequest -Uri https://misaka-zerotwo.github.io/SL-References/Master.zip -OutFile ${{ github.workspace }}/References.zip
29+
Expand-Archive -Path References.zip -DestinationPath ${{ github.workspace }}\lib
30+
4031
- name: Build
4132
run: msbuild KillLogs.sln -p:Configuration=release
4233
env:

0 commit comments

Comments
 (0)