-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(client-gen): .NET client code generator (rust native lib)
- Loading branch information
1 parent
fa10414
commit 816550e
Showing
49 changed files
with
4,571 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
name: '[net] Build client-gen-dotnet' | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- '.github/workflows/net-build-client-gen.yml' | ||
- 'net/rs/**' | ||
|
||
pull_request: | ||
paths: | ||
- '.github/workflows/net-build-client-gen.yml' | ||
- 'net/rs/**' | ||
|
||
jobs: | ||
win-x64: | ||
runs-on: windows-latest | ||
timeout-minutes: 30 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: cargo build --manifest-path net/rs/Cargo.toml --release | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: win-x64 | ||
path: ./net/rs/target/release/sails_net_client_gen.dll | ||
retention-days: 1 | ||
overwrite: true | ||
|
||
linux-x64: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: cargo build --manifest-path net/rs/Cargo.toml --release | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: linux-x64 | ||
path: ./net/rs/target/release/libsails_net_client_gen.so | ||
retention-days: 1 | ||
overwrite: true | ||
|
||
osx-x64: | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: rustup target add x86_64-apple-darwin | ||
- run: cargo build --manifest-path net/rs/Cargo.toml --release --target x86_64-apple-darwin | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: osx-x64 | ||
path: ./net/rs/target/x86_64-apple-darwin/release/libsails_net_client_gen.dylib | ||
retention-days: 1 | ||
overwrite: true | ||
|
||
osx-arm64: | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: rustup target add aarch64-apple-darwin | ||
- run: cargo build --manifest-path net/rs/Cargo.toml --release --target aarch64-apple-darwin | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: osx-arm64 | ||
path: ./net/rs/target/aarch64-apple-darwin/release/libsails_net_client_gen.dylib | ||
retention-days: 1 | ||
overwrite: true | ||
|
||
build-nuget-package: | ||
needs: | ||
- win-x64 | ||
- linux-x64 | ||
- osx-x64 | ||
- osx-arm64 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Download native libraries | ||
uses: actions/download-artifact@v4 | ||
with: | ||
path: native-libraries | ||
|
||
- name: Build | ||
run: dotnet build ./net/src/Sails.ClientGenerator/ -c Release -p:LibraryRoot=${{ github.workspace }}/native-libraries -p:Version=0.6.3-rc | ||
|
||
- name: Pack | ||
run: dotnet pack ./net/src/Sails.ClientGenerator/ -c Release --no-build -p:Version=0.6.3-rc -o ./publish | ||
|
||
- name: Upload NuGet artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: nuget-package | ||
path: ./publish/*.nupkg | ||
retention-days: 1 | ||
overwrite: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,3 +26,7 @@ js/test/demo/ | |
!.yarn/sdks | ||
!.yarn/versions | ||
.npmrc | ||
|
||
# Verify | ||
*.received.* | ||
*.received/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.