@@ -15,10 +15,10 @@ jobs:
1515 configuration : [ debug, release ]
1616 os : [ windows ]
1717 steps :
18- - uses : actions/checkout@v2
18+ - uses : actions/checkout@v3
1919 - run : ./scripts/cibuild.cmd -configuration ${{ matrix.configuration }} -architecture ${{ matrix.architecture }}
2020 shell : cmd
21- - uses : actions/upload-artifact@v2
21+ - uses : actions/upload-artifact@v3
2222 with :
2323 name : ${{ matrix.os }}_${{ matrix.configuration }}_${{ matrix.architecture }}
2424 path : |
@@ -35,10 +35,10 @@ jobs:
3535 configuration : [ debug, release ]
3636 os : [ windows ]
3737 steps :
38- - uses : actions/checkout@v2
38+ - uses : actions/checkout@v3
3939 - run : ./scripts/cibuild.cmd -configuration ${{ matrix.configuration }} -architecture ${{ matrix.architecture }} /p:PlatformTarget=${{ matrix.architecture }}
4040 shell : cmd
41- - uses : actions/upload-artifact@v2
41+ - uses : actions/upload-artifact@v3
4242 with :
4343 name : ${{ matrix.os }}_${{ matrix.configuration }}_x86
4444 path : |
@@ -55,10 +55,10 @@ jobs:
5555 configuration : [ debug, release ]
5656 os : [ ubuntu ]
5757 steps :
58- - uses : actions/checkout@v2
58+ - uses : actions/checkout@v3
5959 - run : ./scripts/cibuild.sh --configuration ${{ matrix.configuration }} --architecture ${{ matrix.architecture }}
6060 shell : bash
61- - uses : actions/upload-artifact@v2
61+ - uses : actions/upload-artifact@v3
6262 with :
6363 name : ${{ matrix.os }}_${{ matrix.configuration }}_${{ matrix.architecture }}
6464 path : |
@@ -75,10 +75,10 @@ jobs:
7575 configuration : [ debug, release ]
7676 os : [ macos ]
7777 steps :
78- - uses : actions/checkout@v2
78+ - uses : actions/checkout@v3
7979 - run : ./scripts/cibuild.sh --configuration ${{ matrix.configuration }} --architecture ${{ matrix.architecture }}
8080 shell : bash
81- - uses : actions/upload-artifact@v2
81+ - uses : actions/upload-artifact@v3
8282 with :
8383 name : ${{ matrix.os }}_${{ matrix.configuration }}_${{ matrix.architecture }}
8484 path : |
@@ -90,13 +90,21 @@ jobs:
9090 build-nuget-preview :
9191 runs-on : windows-latest
9292 steps :
93- - uses : actions/checkout@v2
93+ - uses : actions/checkout@v3
9494 - run : ./scripts/cibuild.cmd -configuration release -architecture x64
9595 shell : cmd
9696 env :
9797 EXCLUDE_RUN_ID_FROM_PACKAGE : true
9898 EXCLUDE_SUFFIX_FROM_VERSION : false
99- - uses : actions/upload-artifact@v2
99+ - uses : actions/setup-dotnet@v2
100+ if : ${{ github.event_name == 'push' }}
101+ with :
102+ dotnet-version : ' 6.0.x'
103+ - run : dotnet tool install --tool-path ./artifacts/tools SignClient
104+ if : ${{ github.event_name == 'push' }}
105+ - run : ./artifacts/tools/SignClient "Sign" --baseDirectory "${{ github.workspace }}/artifacts/pkg" --input "**/*.nupkg" --config "${{ github.workspace }}/scripts/SignClientSettings.json" --filelist "${{ github.workspace }}/scripts/SignClientFileList.txt" --user "${{ secrets.SC_USER }}" --secret "${{ secrets.SC_PASS }}" --name "ClangSharp" --description "ClangSharp" --descriptionUrl "https://github.com/dotnet/clangsharp"
106+ if : ${{ github.event_name == 'push' }}
107+ - uses : actions/upload-artifact@v3
100108 with :
101109 name : nuget_preview
102110 path : |
@@ -107,15 +115,22 @@ jobs:
107115 if-no-files-found : error
108116 build-nuget-release :
109117 runs-on : windows-latest
110- if : false
111118 steps :
112- - uses : actions/checkout@v2
119+ - uses : actions/checkout@v3
113120 - run : ./scripts/cibuild.cmd -configuration release -architecture x64
114121 shell : cmd
115122 env :
116123 EXCLUDE_RUN_ID_FROM_PACKAGE : true
117124 EXCLUDE_SUFFIX_FROM_VERSION : true
118- - uses : actions/upload-artifact@v2
125+ - uses : actions/setup-dotnet@v2
126+ if : ${{ github.event_name == 'push' }}
127+ with :
128+ dotnet-version : ' 6.0.x'
129+ - run : dotnet tool install --tool-path ./artifacts/tools SignClient
130+ if : ${{ github.event_name == 'push' }}
131+ - run : ./artifacts/tools/SignClient "Sign" --baseDirectory "${{ github.workspace }}/artifacts/pkg" --input "**/*.nupkg" --config "${{ github.workspace }}/scripts/SignClientSettings.json" --filelist "${{ github.workspace }}/scripts/SignClientFileList.txt" --user "${{ secrets.SC_USER }}" --secret "${{ secrets.SC_PASS }}" --name "ClangSharp" --description "ClangSharp" --descriptionUrl "https://github.com/dotnet/clangsharp"
132+ if : ${{ github.event_name == 'push' }}
133+ - uses : actions/upload-artifact@v3
119134 with :
120135 name : nuget_release
121136 path : |
@@ -133,7 +148,7 @@ jobs:
133148 with :
134149 name : windows_release_x64
135150 path : ./artifacts
136- - uses : actions/setup-dotnet@v1
151+ - uses : actions/setup-dotnet@v2
137152 with :
138153 dotnet-version : ' 6.0.x'
139154 source-url : https://pkgs.clangsharp.dev/index.json
@@ -149,7 +164,7 @@ jobs:
149164 with :
150165 name : windows_release_x64
151166 path : ./artifacts
152- - uses : actions/setup-dotnet@v1
167+ - uses : actions/setup-dotnet@v2
153168 with :
154169 dotnet-version : ' 6.0.x'
155170 - run : dotnet nuget push "./artifacts/pkg/Release/*.nupkg" --source https://nuget.pkg.github.com/dotnet/index.json --api-key ${{ secrets.GITHUB_TOKEN }} --skip-duplicate
0 commit comments