Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit99bde5a

Browse files
committed
new check-build job
1 parent0224f6e commit99bde5a

File tree

1 file changed

+40
-1
lines changed

1 file changed

+40
-1
lines changed

‎.github/workflows/ci.yaml‎

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -916,6 +916,7 @@ jobs:
916916
-test-e2e
917917
-offlinedocs
918918
-sqlc-vet
919+
-check-build
919920
# Allow this job to run even if the needed jobs fail, are skipped or
920921
# cancelled.
921922
if:always()
@@ -936,6 +937,7 @@ jobs:
936937
echo "- test-js: ${{ needs.test-js.result }}"
937938
echo "- test-e2e: ${{ needs.test-e2e.result }}"
938939
echo "- offlinedocs: ${{ needs.offlinedocs.result }}"
940+
echo "- check-build: ${{ needs.check-build.result }}"
939941
echo
940942
941943
# We allow skipped jobs to pass, but not failed or cancelled jobs.
@@ -1026,6 +1028,44 @@ jobs:
10261028
if:${{ github.repository_owner == 'coder' && github.ref == 'refs/heads/main' }}
10271029
run:rm -f /tmp/{apple_cert.p12,apple_cert_password.txt,apple_apikey.p8}
10281030

1031+
check-build:
1032+
# This job runs make build to verify compilation on PRs
1033+
needs:changes
1034+
if:needs.changes.outputs.go == 'true' && github.ref != 'refs/heads/main'
1035+
runs-on:${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-8' || 'ubuntu-latest' }}
1036+
steps:
1037+
-name:Harden Runner
1038+
uses:step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911# v2.13.0
1039+
with:
1040+
egress-policy:audit
1041+
1042+
-name:Checkout
1043+
uses:actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955# v4.3.0
1044+
with:
1045+
fetch-depth:0
1046+
1047+
-name:Setup Node
1048+
uses:./.github/actions/setup-node
1049+
1050+
-name:Setup Go
1051+
uses:./.github/actions/setup-go
1052+
1053+
-name:Install go-winres
1054+
run:go install github.com/tc-hib/go-winres@d743268d7ea168077ddd443c4240562d4f5e8c3e# v0.3.3
1055+
1056+
-name:Install nfpm
1057+
run:go install github.com/goreleaser/nfpm/v2/cmd/nfpm@v2.35.1
1058+
1059+
-name:Install zstd
1060+
run:sudo apt-get install -y zstd
1061+
1062+
-name:Build
1063+
run:|
1064+
set -euxo pipefail
1065+
go mod download
1066+
make gen/mark-fresh
1067+
make build
1068+
10291069
build:
10301070
# This builds and publishes ghcr.io/coder/coder-preview:main for each commit
10311071
# to main branch.
@@ -1541,7 +1581,6 @@ jobs:
15411581
15421582
notify-slack-on-failure:
15431583
needs:
1544-
-build
15451584
-required
15461585
runs-on:ubuntu-latest
15471586
if:failure() && github.ref == 'refs/heads/main'

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp