Skip to content

Commit

Permalink
fix: ci file extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
0b10000 authored Feb 10, 2024
1 parent 339b4d6 commit 125657e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 45 deletions.
21 changes: 6 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,12 @@ jobs:
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v1

- name: Download references
uses: carlosperate/[email protected]
with:
file-url: 'https://misaka-zerotwo.github.io/SL-References/Master.zip'
file-name: 'References.zip'

- name: Download 7zip
uses: carlosperate/[email protected]
with:
file-url: 'https://www.exiled.host/7za.exe'
file-name: '7zip.exe'

- name: Extract Refs
run: ./7zip.exe e References.zip -oD:\a\KillLogs\KillLogs\lib\ -r -y

- name: Get references
shell: pwsh
run: |
Invoke-WebRequest -Uri https://misaka-zerotwo.github.io/SL-References/Master.zip -OutFile ${{ github.workspace }}/References.zip
Expand-Archive -Path References.zip -DestinationPath ${{ github.workspace }}\lib
- name: Build
run: msbuild KillLogs.sln -p:Configuration=release
env:
Expand Down
21 changes: 6 additions & 15 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,21 +49,12 @@ jobs:
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v1

- name: Download references
uses: carlosperate/[email protected]
with:
file-url: 'https://misaka-zerotwo.github.io/SL-References/Master.zip'
file-name: 'References.zip'

- name: Download 7zip
uses: carlosperate/[email protected]
with:
file-url: 'https://www.exiled.host/7za.exe'
file-name: '7zip.exe'

- name: Extract Refs
run: ./7zip.exe e References.zip -o${{ github.workspace }}\lib\ -r -y

- name: Get references
shell: pwsh
run: |
Invoke-WebRequest -Uri https://misaka-zerotwo.github.io/SL-References/Master.zip -OutFile ${{ github.workspace }}/References.zip
Expand-Archive -Path References.zip -DestinationPath ${{ github.workspace }}\lib
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
Expand Down
21 changes: 6 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,12 @@ jobs:
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v1

- name: Download references
uses: carlosperate/[email protected]
with:
file-url: 'https://misaka-zerotwo.github.io/SL-References/Master.zip'
file-name: 'References.zip'

- name: Download 7zip
uses: carlosperate/[email protected]
with:
file-url: 'https://www.exiled.host/7za.exe'
file-name: '7zip.exe'

- name: Extract Refs
run: ./7zip.exe e References.zip -oD:\a\KillLogs\KillLogs\lib\ -r -y

- name: Get references
shell: pwsh
run: |
Invoke-WebRequest -Uri https://misaka-zerotwo.github.io/SL-References/Master.zip -OutFile ${{ github.workspace }}/References.zip
Expand-Archive -Path References.zip -DestinationPath ${{ github.workspace }}\lib
- name: Build
run: msbuild KillLogs.sln -p:Configuration=release
env:
Expand Down

0 comments on commit 125657e

Please sign in to comment.