Skip to content

Commit

Permalink
wip: ci2
Browse files Browse the repository at this point in the history
  • Loading branch information
vobradovich committed Nov 6, 2024
1 parent 45f8d13 commit 9fe76e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/net-build-client-gen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,20 @@ jobs:
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- run: cargo build -p sails-client-gen-dotnet --target x86_64-pc-windows-msvc --release
- run: cargo build -p sails-client-gen-dotnet --release
- uses: actions/upload-artifact@v4
with:
name: win-x64
path: ./target/x86_64-pc-windows-msvc/release/sails-client-gen-dotnet.dll
path: ./target/release/sails_client_gen_dotnet.dll
retention-days: 1

linux-x64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: cargo build -p sails-client-gen-dotnet --target x86_64-unknown-linux-gnu --release
- run: cargo build -p sails-client-gen-dotnet --release
- uses: actions/upload-artifact@v4
with:
name: linux-x64
path: ./target/x86_64-unknown-linux-gnu/release/sails-client-gen-dotnet.so
path: ./target/release/sails_client_gen_dotnet.so
retention-days: 1
10 changes: 0 additions & 10 deletions net/src/Sails.ClientGenerator/Sails.ClientGenerator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@
<PackageReference Include="PolySharp" />
</ItemGroup>

<ItemGroup>
<None Include="../../../target/release/sails_client_gen_dotnet.dll">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>

<!-- for debug perpose, if exists in debug, copy it -->
<ItemGroup Condition="'$(Configuration)' == 'Debug' and Exists('../../../target/debug/sails_client_gen_dotnet.dll')">
<None Include="../../../target/debug/sails_client_gen_dotnet.dll">
Expand All @@ -38,10 +32,6 @@
</None>
</ItemGroup>

<!-- <Target Name="PreBuild" BeforeTargets="PreBuildEvent">
<Exec Command="cargo build -p sails-client-gen-dotnet --release" />
</Target> -->

<!-- for nuget publish -->
<Target Name="PackBuildOutputs" DependsOnTargets="SatelliteDllsProjectOutputGroup;DebugSymbolsProjectOutputGroup">
<ItemGroup>
Expand Down

0 comments on commit 9fe76e6

Please sign in to comment.