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
This repository was archived by the owner on Aug 30, 2024. It is now read-only.
/coder-v1-cliPublic archive

Commita430ef6

Browse files
authored
chore: update build settings (#420)
* Update actions/checkout from v1 to@v2* Configure build to run on pushes/pull requests on main* Add restrictive workflow permissions* Update minimum setup-go from 1.16.3 to 1.16.7* Enable workflow dispatch for all builds
1 parent59a0a20 commita430ef6

File tree

4 files changed

+130
-12
lines changed

4 files changed

+130
-12
lines changed

‎.github/workflows/build.yaml

Lines changed: 40 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,79 @@
11
name:build
2-
on:[push]
2+
3+
on:
4+
push:
5+
branches:
6+
-main
7+
8+
pull_request:
9+
branches:
10+
-main
11+
12+
workflow_dispatch:
13+
14+
permissions:
15+
actions:none
16+
checks:none
17+
contents:read
18+
deployments:none
19+
issues:none
20+
packages:none
21+
pull-requests:none
22+
repository-projects:none
23+
security-events:none
24+
statuses:none
325

426
jobs:
527
build:
628
runs-on:ubuntu-20.04
729
steps:
830
-name:Checkout
9-
uses:actions/checkout@v1
31+
uses:actions/checkout@v2
32+
with:
33+
fetch-depth:0
34+
1035
-uses:actions/setup-go@v2
1136
with:
12-
go-version:'^1.16.3'
37+
go-version:'^1.16.7'
38+
1339
-name:Build
1440
run:make -j build/linux build/windows
41+
1542
-name:Upload
1643
uses:actions/upload-artifact@v2
1744
with:
1845
name:coder-cli
1946
path:./ci/bin/coder-cli-*
47+
2048
build_darwin:
2149
runs-on:macos-latest
2250
steps:
2351
-name:Checkout
24-
uses:actions/checkout@v1
52+
uses:actions/checkout@v2
53+
with:
54+
fetch-depth:0
55+
2556
-uses:actions/setup-go@v2
2657
with:
27-
go-version:'^1.16.3'
58+
go-version:'^1.16.7'
59+
2860
-name:Install Gon
2961
run:|
3062
brew tap mitchellh/gon
3163
brew install mitchellh/gon/gon
64+
3265
-name:Import Signing Certificates
3366
uses:Apple-Actions/import-codesign-certs@v1
3467
with:
3568
p12-file-base64:${{ secrets.APPLE_DEVELOPER_CERTIFICATE_P12_BASE64 }}
3669
p12-password:${{ secrets.APPLE_DEVELOPER_CERTIFICATE_PASSWORD }}
70+
3771
-name:Build
3872
run:make build/macos
3973
env:
4074
AC_USERNAME:${{ secrets.AC_USERNAME }}
4175
AC_PASSWORD:${{ secrets.AC_PASSWORD }}
76+
4277
-name:Upload
4378
uses:actions/upload-artifact@v2
4479
with:

‎.github/workflows/integration.yaml

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,30 @@
11
name:integration
2+
23
on:
34
push:
5+
branches:
6+
-main
7+
8+
pull_request:
9+
branches:
10+
-main
11+
412
schedule:
5-
-cron:'*/180 * * * *'
13+
-cron:'*/180 * * * *'
14+
15+
workflow_dispatch:
16+
17+
permissions:
18+
actions:none
19+
checks:none
20+
contents:read
21+
deployments:none
22+
issues:none
23+
packages:none
24+
pull-requests:none
25+
repository-projects:none
26+
security-events:none
27+
statuses:none
628

729
jobs:
830
integration:
@@ -12,15 +34,20 @@ jobs:
1234
CODER_EMAIL:${{ secrets.CODER_EMAIL }}
1335
CODER_PASSWORD:${{ secrets.CODER_PASSWORD }}
1436
steps:
15-
-uses:actions/checkout@v1
37+
-uses:actions/checkout@v2
38+
with:
39+
fetch-depth:0
40+
1641
-uses:actions/cache@v2
1742
with:
1843
path:~/go/pkg/mod
1944
key:${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
2045
restore-keys:|
2146
${{ runner.os }}-go-
47+
2248
-uses:actions/setup-go@v2
2349
with:
24-
go-version:'^1.14'
50+
go-version:'^1.16.7'
51+
2552
-name:integration tests
2653
run:./ci/scripts/integration.sh

‎.github/workflows/release.yaml

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,86 @@
1+
name:create_github_release
2+
13
on:
24
create:
35
tags:"v*"
4-
name:create_github_release
6+
7+
permissions:
8+
actions:none
9+
checks:none
10+
contents:read
11+
deployments:none
12+
issues:none
13+
packages:none
14+
pull-requests:none
15+
repository-projects:none
16+
security-events:none
17+
statuses:none
18+
519
jobs:
620
build:
721
name:Build binaries
822
runs-on:ubuntu-20.04
923
steps:
1024
-name:Checkout code
1125
uses:actions/checkout@v2
26+
with:
27+
fetch-depth:0
28+
1229
-uses:actions/setup-go@v2
1330
with:
14-
go-version:'^1.16.3'
31+
go-version:'^1.16.7'
32+
1533
-name:Build
1634
run:make -j build/linux build/windows
35+
1736
-name:Upload linux
1837
uses:actions/upload-artifact@v2
1938
with:
2039
name:coder-cli-linux-amd64
2140
path:./ci/bin/coder-cli-linux-amd64.tar.gz
41+
2242
-name:Upload windows
2343
uses:actions/upload-artifact@v2
2444
with:
2545
name:coder-cli-windows
2646
path:./ci/bin/coder-cli-windows.zip
47+
2748
build_darwin:
2849
name:Build darwin binary
2950
runs-on:macos-latest
3051
steps:
3152
-name:Checkout code
3253
uses:actions/checkout@v2
54+
with:
55+
fetch-depth:0
56+
3357
-name:Install Gon
3458
run:|
3559
brew tap mitchellh/gon
3660
brew install mitchellh/gon/gon
61+
3762
-name:Import Signing Certificates
3863
uses:Apple-Actions/import-codesign-certs@v1
3964
with:
4065
p12-file-base64:${{ secrets.APPLE_DEVELOPER_CERTIFICATE_P12_BASE64 }}
4166
p12-password:${{ secrets.APPLE_DEVELOPER_CERTIFICATE_PASSWORD }}
67+
4268
-uses:actions/setup-go@v2
4369
with:
44-
go-version:'^1.16.3'
70+
go-version:'^1.16.7'
71+
4572
-name:Build Release Assets
4673
run:make build/macos
4774
env:
4875
AC_USERNAME:${{ secrets.AC_USERNAME }}
4976
AC_PASSWORD:${{ secrets.AC_PASSWORD }}
77+
5078
-name:Upload darwin
5179
uses:actions/upload-artifact@v2
5280
with:
5381
name:coder-cli-darwin-amd64
5482
path:./ci/bin/coder-cli-darwin-amd64.zip
83+
5584
draft_release:
5685
name:Create Release
5786
runs-on:ubuntu-20.04
@@ -60,8 +89,10 @@ jobs:
6089
-build
6190
steps:
6291
-uses:actions/download-artifact@v2
92+
6393
-name:content
6494
run:sh -c "ls -al"
95+
6596
-name:Create Release
6697
id:create_release
6798
uses:actions/create-release@v1
@@ -73,6 +104,7 @@ jobs:
73104
body:""
74105
draft:true
75106
prerelease:false
107+
76108
-name:Upload Linux Release
77109
id:upload-linux-release-asset
78110
uses:actions/upload-release-asset@v1
@@ -83,6 +115,7 @@ jobs:
83115
asset_path:coder-cli-linux-amd64/coder-cli-linux-amd64.tar.gz
84116
asset_name:coder-cli-linux-amd64.tar.gz
85117
asset_content_type:application/tar+gzip
118+
86119
-name:Upload MacOS Release
87120
id:upload-macos-release-asset
88121
uses:actions/upload-release-asset@v1
@@ -93,6 +126,7 @@ jobs:
93126
asset_path:coder-cli-darwin-amd64/coder-cli-darwin-amd64.zip
94127
asset_name:coder-cli-darwin-amd64.zip
95128
asset_content_type:application/zip
129+
96130
-name:Upload Windows Release
97131
id:upload-windows-release-asset
98132
uses:actions/upload-release-asset@v1

‎.github/workflows/test.yaml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,27 @@
11
name:test
2-
on:[push]
2+
3+
on:
4+
push:
5+
branches:
6+
-main
7+
8+
pull_request:
9+
branches:
10+
-main
11+
12+
workflow_dispatch:
13+
14+
permissions:
15+
actions:none
16+
checks:none
17+
contents:read
18+
deployments:none
19+
issues:none
20+
packages:none
21+
pull-requests:none
22+
repository-projects:none
23+
security-events:none
24+
statuses:none
325

426
jobs:
527
fmt:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp