Skip to content

Commit

Permalink
fix(ci): fix path
Browse files Browse the repository at this point in the history
  • Loading branch information
SARDONYX-sard committed Nov 16, 2023
1 parent 0bc56f5 commit 9402d99
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/lint-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
- name: Build Test(CLI)
run: cargo build --release

- name: Setup cache
- name: Node.js cache
uses: actions/cache@v3
with:
path: |
Expand All @@ -79,19 +79,24 @@ jobs:
if: runner.os == 'Windows'
run: |
$compress = @{
LiteralPath= "./target/release/g_dar2oar.exe", "/target/release/dar2oar.exe"
LiteralPath= "./target/release/g_dar2oar.exe", "./target/release/dar2oar.exe"
CompressionLevel = "Fastest"
DestinationPath = "./gui/g_dar2oar-${{ runner.os}}.zip"
}
Compress-Archive @compress
- name: Compress outputs(MacOS)
shell: bash
if: runner.os == 'macOS'
run: tar -czvf ./gui/g_dar2oar-${{ runner.os}}.tar.gz ./target/release/g_dar2oar ./target/release/dar2oar
- name: Compress outputs(Unix)
shell: bash
if: runner.os != 'windows'
run: tar -czvf ./gui/g_dar2oar-${{ runner.os}}.tar.gz ${{ github.workspace}}/target/release/g_dar2oar ${{ github.workspace}}/target/release/dar2oar
if: runner.os == 'linux'
# NOTE: Linux was excluded because the location of the GUI could not be identified.
run: tar -czvf ./gui/g_dar2oar-${{ runner.os}}.tar.gz ./target/release/dar2oar

- name: Upload a Build Artifact
uses: actions/upload-artifact@v3.1.3
with:
name: DAR to OAR Converter(GUI)-${{runner.os}}
name: DAR to OAR Converter-${{runner.os}}
path: |
${{ github.workspace}}/gui/
./gui/

0 comments on commit 9402d99

Please sign in to comment.