Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mycrl committed Jun 14, 2024
1 parent b70f3c5 commit e8d3069
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,56 +55,42 @@ jobs:
name: Rename release (Linux)
if: runner.os == 'Linux' && matrix.arch == 'x86_64'
run: |
mv ./target/release/turn-balance-server ./target/release/turn-balance-server-linux-x86_64
mv ./target/release/turn-server ./target/release/turn-server-linux-x86_64
mv ./target/release/turn-cli ./target/release/turn-cli-linux-x86_64
-
name: Rename release (Linux)
if: runner.os == 'Linux' && matrix.arch == 'aarch64'
run: |
mv ./target/aarch64-unknown-linux-gnu/release/turn-balance-server ./target/aarch64-unknown-linux-gnu/release/turn-balance-server-linux-aarch64
mv ./target/aarch64-unknown-linux-gnu/release/turn-server ./target/aarch64-unknown-linux-gnu/release/turn-server-linux-aarch64
mv ./target/aarch64-unknown-linux-gnu/release/turn-cli ./target/aarch64-unknown-linux-gnu/release/turn-cli-linux-aarch64
-
name: Rename release (Windows)
if: runner.os == 'Windows' && matrix.arch == 'x86_64'
run: |
Remove-Item -Path "./target/release/turn-balance-server-windows-x86_64.exe" -ErrorAction SilentlyContinue;
Remove-Item -Path "./target/release/turn-server-windows-x86_64.exe" -ErrorAction SilentlyContinue;
Remove-Item -Path "./target/release/turn-cli-windows-x86_64.exe" -ErrorAction SilentlyContinue;
Rename-Item -Path "./target/release/turn-balance-server.exe" -NewName "turn-balance-server-windows-x86_64.exe";
Rename-Item -Path "./target/release/turn-server.exe" -NewName "turn-server-windows-x86_64.exe";
Rename-Item -Path "./target/release/turn-cli.exe" -NewName "turn-cli-windows-x86_64.exe";
-
name: Upload artifact (Linux)
if: runner.os == 'Linux' && matrix.arch == 'x86_64'
uses: actions/upload-artifact@v3
with:
name: linux-x86_64
path: |
./target/release/turn-balance-server-linux-x86_64
./target/release/turn-server-linux-x86_64
./target/release/turn-cli-linux-x86_64
-
name: Upload artifact (Linux)
if: runner.os == 'Linux' && matrix.arch == 'aarch64'
uses: actions/upload-artifact@v3
with:
name: linux-x86_64
path: |
./target/aarch64-unknown-linux-gnu/release/turn-balance-server-linux-aarch64
./target/aarch64-unknown-linux-gnu/release/turn-server-linux-aarch64
./target/aarch64-unknown-linux-gnu/release/turn-cli-linux-aarch64
-
name: Upload artifact (Windows)
if: runner.os == 'Windows' && matrix.arch == 'x86_64'
uses: actions/upload-artifact@v3
with:
name: windows-x86_64
path: |
./target/release/turn-balance-server-windows-x86_64.exe
./target/release/turn-server-windows-x86_64.exe
./target/release/turn-cli-windows-x86_64.exe
deploy:
needs: build
runs-on: ubuntu-latest
Expand Down

0 comments on commit e8d3069

Please sign in to comment.