From 125657eb93527b26f1060919333b14245db1c48f Mon Sep 17 00:00:00 2001 From: 0b10000 <81607037+0b10000@users.noreply.github.com> Date: Sat, 10 Feb 2024 16:01:10 -0500 Subject: [PATCH] fix: ci file extraction --- .github/workflows/build.yml | 21 ++++++--------------- .github/workflows/codeql-analysis.yml | 21 ++++++--------------- .github/workflows/release.yml | 21 ++++++--------------- 3 files changed, 18 insertions(+), 45 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 25d4c38..d613290 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,21 +27,12 @@ jobs: - name: Setup MSBuild uses: microsoft/setup-msbuild@v1 - - name: Download references - uses: carlosperate/download-file-action@v1.0.3 - with: - file-url: 'https://misaka-zerotwo.github.io/SL-References/Master.zip' - file-name: 'References.zip' - - - name: Download 7zip - uses: carlosperate/download-file-action@v1.0.3 - 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: diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index b11c89e..7c3fe94 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -49,21 +49,12 @@ jobs: - name: Setup MSBuild uses: microsoft/setup-msbuild@v1 - - name: Download references - uses: carlosperate/download-file-action@v1.0.3 - with: - file-url: 'https://misaka-zerotwo.github.io/SL-References/Master.zip' - file-name: 'References.zip' - - - name: Download 7zip - uses: carlosperate/download-file-action@v1.0.3 - 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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 471a5f4..843e4b8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,21 +22,12 @@ jobs: - name: Setup MSBuild uses: microsoft/setup-msbuild@v1 - - name: Download references - uses: carlosperate/download-file-action@v1.0.3 - with: - file-url: 'https://misaka-zerotwo.github.io/SL-References/Master.zip' - file-name: 'References.zip' - - - name: Download 7zip - uses: carlosperate/download-file-action@v1.0.3 - 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: