Skip to content

Commit

Permalink
CI: extract the encoding verifier to a separate job
Browse files Browse the repository at this point in the history
  • Loading branch information
ForNeVeR committed May 18, 2024
1 parent 6854a5d commit 6dcfea1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
19 changes: 7 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ jobs:
uses: actions/checkout@v4
with:
submodules: true
- name: Verify encoding
shell: pwsh
run: ./common/verify-encoding.ps1
- name: Generate cache key
shell: pwsh
run: ./common/Test-UpToDate.ps1 -GenerateCacheKey
Expand Down Expand Up @@ -55,9 +52,6 @@ jobs:
uses: actions/checkout@v4
with:
submodules: true
- name: Verify encoding
shell: pwsh
run: ./common/verify-encoding.ps1
- name: Generate cache key
shell: pwsh
run: ./common/Test-UpToDate.ps1 -GenerateCacheKey
Expand Down Expand Up @@ -90,9 +84,6 @@ jobs:
uses: actions/checkout@v4
with:
submodules: true
- name: Verify encoding
shell: pwsh
run: ./common/verify-encoding.ps1
- name: Generate cache key
shell: pwsh
run: ./common/Test-UpToDate.ps1 -GenerateCacheKey
Expand Down Expand Up @@ -125,9 +116,6 @@ jobs:
uses: actions/checkout@v4
with:
submodules: true
- name: Verify encoding
shell: pwsh
run: ./common/verify-encoding.ps1
- name: Generate cache key
shell: pwsh
run: ./common/Test-UpToDate.ps1 -GenerateCacheKey
Expand Down Expand Up @@ -440,3 +428,10 @@ jobs:
- if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
name: Push the package to nuget.org
run: dotnet nuget push --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_KEY }} ./build/tdlib.native.${{ steps.version.outputs.version }}.nupkg
verify-encoding:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Verify encoding
shell: pwsh
run: ./common/verify-encoding.ps1
7 changes: 6 additions & 1 deletion github-actions.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ type Workflows =
?installScript: string,
?buildScriptArgs: string
) = [
pwsh "Verify encoding" "./common/verify-encoding.ps1"
pwsh "Generate cache key" "./common/Test-UpToDate.ps1 -GenerateCacheKey"
step(
name = "Cache artifacts",
Expand Down Expand Up @@ -357,6 +356,12 @@ let workflows = [
run = "dotnet nuget push --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_KEY }} ./build/tdlib.native.${{ steps.version.outputs.version }}.nupkg"
)
]

job "verify-encoding" [
runsOn ubuntuLatest
checkout
pwsh "Verify encoding" "./common/verify-encoding.ps1"
]
]
]

Expand Down

0 comments on commit 6dcfea1

Please sign in to comment.