Skip to content

Commit

Permalink
fix(ci): fix compress process
Browse files Browse the repository at this point in the history
  • Loading branch information
SARDONYX-sard committed Nov 16, 2023
1 parent 82296ec commit b4be419
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/lint-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,17 @@ jobs:
run: mkdir -p ./gui
- name: Compress outputs(Windows)
shell: pwsh
if: ${{ runner.os }} == 'Windows'
run: Compress-Archive ${{ github.workspace}}/target/debug/g_dar2oar.exe ${{ github.workspace}}/target/debug/dar2oar.exe ./gui/g_dar2oar-${{ runner.os}}.zip
if: ${{ matrix.platform }} == 'windows-latest'
run: |
$compress = @{
LiteralPath= "./target/debug/g_dar2oar.exe", "/target/debug/dar2oar.exe"
CompressionLevel = "Fastest"
DestinationPath = "./gui/g_dar2oar-${{ runner.os}}.zip"
}
Compress-Archive @compress
- name: Compress outputs(Unix)
shell: bash
if: ${{ runner.os }} != 'Windows'
if: ${{ matrix.platform }} != 'windows-latest'
run: tar -czvf ./gui/g_dar2oar-${{ runner.os}}.tar.gz ${{ github.workspace}}/target/debug/g_dar2oar ${{ github.workspace}}/target/debug/dar2oar

- name: Upload a Build Artifact
Expand Down

0 comments on commit b4be419

Please sign in to comment.