File tree 4 files changed +189
-750
lines changed
4 files changed +189
-750
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : Test Publish Action
2
+
3
+ on :
4
+ push :
5
+ branches : [ main ]
6
+ pull_request :
7
+ branches : [ main ]
8
+
9
+ jobs :
10
+
11
+ build_artifacts :
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - name : Checkout prs-rs Repository
15
+ uses : actions/checkout@v4
16
+ with :
17
+ repository : Sewer56/prs-rs
18
+ ref : d08599ed5473616f57d57a0966939e1a5dbda9b4
19
+
20
+ - name : Build Rust C Library
21
+ uses : Reloaded-Project/devops-rust-lightweight-binary@v1
22
+ with :
23
+ crate-name : prs-rs
24
+ target : x86_64-unknown-linux-gnu
25
+ use-pgo : false
26
+ use-cross : false
27
+ features : " c-exports"
28
+ build-library : true
29
+ upload-artifacts : true
30
+
31
+ - name : Build .NET Library
32
+ uses : Reloaded-Project/devops-rust-c-library-to-dotnet@v1
33
+ with :
34
+ csharp-project-path : bindings/csharp
35
+
36
+ test_publish_action :
37
+ needs : build_artifacts
38
+ runs-on : ubuntu-latest
39
+ steps :
40
+ - uses : actions/checkout@v4
41
+
42
+ - name : Download artifacts
43
+ uses : actions/download-artifact@v4
44
+ with :
45
+ path : artifacts
46
+
47
+ - name : Test Publish Action
48
+ uses : ./
49
+ with :
50
+ crates-io-token : ${{ secrets.CRATES_IO_TOKEN }}
51
+ additional-publish-params : --dry-run
52
+
53
+ - name : Verify NuGet packages
54
+ run : |
55
+ if ls artifacts/**/*.nupkg 1> /dev/null 2>&1; then
56
+ echo "NuGet packages found"
57
+ else
58
+ echo "No NuGet packages found"
59
+ exit 1
60
+ fi
61
+
62
+ if ls artifacts/**/*.snupkg 1> /dev/null 2>&1; then
63
+ echo "NuGet symbol packages found"
64
+ else
65
+ echo "No NuGet symbol packages found"
66
+ exit 1
67
+ fi
You can’t perform that action at this time.
0 commit comments