Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 60 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
- name: Upload Binaries
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.targets.OS }}-${{ matrix.targets.ARCH }}
name: client-${{ matrix.targets.OS }}-${{ matrix.targets.ARCH }}
path: dist/*

- name: Release
Expand All @@ -77,6 +77,65 @@ jobs:
files: |
dist/*

release-client-rs:
strategy:
matrix:
platform:
- runs-on: ubuntu-latest
target: x86_64-unknown-linux-musl

- runs-on: ubuntu-latest
target: aarch64-unknown-linux-musl

- runs-on: windows-latest
target: x86_64-pc-windows-msvc
EXT: .exe

- runs-on: macOS-latest
target: x86_64-apple-darwin

- runs-on: macos-latest
target: aarch64-apple-darwin

runs-on: ${{ matrix.platform.runs-on }}
steps:
- uses: actions/checkout@v4

- name: Build binary
uses: houseabsolute/actions-rust-cross@v1
with:
working-directory: client-rs
target: ${{ matrix.platform.target }}
args: "--locked --release"

- run: |
rm client-rs/target/${{ matrix.platform.target }}/release/client-rs.d
mv client-rs/target/${{ matrix.platform.target }}/release/client-rs${{ matrix.platform.EXT }} client-rs/target/${{ matrix.platform.target }}/release/wst-rs${{ matrix.platform.EXT }}

- name: Upload Binaries
uses: actions/upload-artifact@v4
with:
name: client-rs-${{ matrix.platform.target }}
path: client-rs/target/${{ matrix.platform.target }}/release/wst-rs*

- name: tar
run: |
tar -C client-rs/target/${{ matrix.platform.target }}/release -czvf client-rs/target/${{ matrix.platform.target }}/release/wst-rs-${{ matrix.platform.target }}.tar.gz wst-rs${{ matrix.platform.EXT }}

- name: Release
if: ${{ startsWith(github.ref, 'refs/tags/') }}
uses: softprops/action-gh-release@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
draft: false
prerelease: false
append_body: false
fail_on_unmatched_files: true
name: ${{ github.ref_name }}
tag_name: ${{ github.ref_name }}
files: |
client-rs/target/${{ matrix.platform.target }}/release/wst-rs-${{ matrix.platform.target }}.tar.gz

release-server:
runs-on: ubuntu-latest

Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
wst
**/*.local
.idea
.idea
client-rs/target
Loading
Loading