@@ -114,17 +114,6 @@ scripts:
114
114
popd > /dev/null
115
115
fi
116
116
go build -tags "$GO_BUILD_TAGS" -o $BUILD_TARGET_DIR/$constants.BUILD_TARGET $constants.CLI_BUILDFLAGS $constants.CLI_PKGS
117
- - name : build-for
118
- language : bash
119
- standalone : true
120
- description : Builds the project with the specified OS as the target OS. (valid values darwin, linux, windows)
121
- value : |
122
- set -e
123
- $constants.SET_ENV
124
- export GOOS=${1}
125
- export GOARCH=amd64
126
- [ -z "${2}" ] && >&2 echo "must provide output file as 2nd arg" && exit 1
127
- go build -tags "internal $GO_BUILD_TAGS" -o ${2} $constants.CLI_BUILDFLAGS $constants.CLI_PKGS
128
117
- name : build-svc
129
118
language : bash
130
119
standalone : true
@@ -260,46 +249,10 @@ scripts:
260
249
standalone : true
261
250
description : Generates our github workflows
262
251
value : |
263
- $scripts.build-for.path() "windows" ./.github/deps/Windows/bin/state.exe
264
- $scripts.build-for.path() "linux" ./.github/deps/Linux/bin/state
265
- $scripts.build-for.path() "darwin" ./.github/deps/macOS/bin/state
266
-
267
- GOOS=windows go build -o .github/deps/Windows/bin/parallelize.exe github.com/ActiveState/cli/scripts/ci/parallelize/
268
- GOOS=linux go build -o .github/deps/Linux/bin/parallelize github.com/ActiveState/cli/scripts/ci/parallelize/
269
- GOOS=darwin go build -o .github/deps/macOS/bin/parallelize github.com/ActiveState/cli/scripts/ci/parallelize/
270
- - name : update-workflow-assets
271
- language : bash
272
- standalone : true
273
- description : Generates our github workflows
274
- value : |
275
- [ -z "${2}" ] && >&2 echo "Usage: update-workflow-assets [branch] [version]" && exit 1
276
-
277
- tmpDir=$(mktemp -d)
278
- pushd $tmpDir
279
- wget https://state-tool.s3.amazonaws.com/update/state/${1}/${2}/darwin-amd64/state-darwin-amd64-${2}.tar.gz
280
- tar xzf state-darwin-amd64-${2}.tar.gz
281
- cp -Rfv state-install/bin/state $project.path()/.github/deps/macOS/bin
282
- cp -Rfv state-install/bin/state-svc $project.path()/.github/deps/macOS/bin
283
- popd
284
- rm -Rf $tmpDir
285
-
286
- tmpDir=$(mktemp -d)
287
- pushd $tmpDir
288
- wget https://state-tool.s3.amazonaws.com/update/state/${1}/${2}/linux-amd64/state-linux-amd64-${2}.tar.gz
289
- tar xzf state-linux-amd64-${2}.tar.gz
290
- cp -Rfv state-install/bin/state $project.path()/.github/deps/Linux/bin
291
- cp -Rfv state-install/bin/state-svc $project.path()/.github/deps/Linux/bin
292
- popd
293
- rm -Rf $tmpDir
294
-
295
- tmpDir=$(mktemp -d)
296
- pushd $tmpDir
297
- wget https://state-tool.s3.amazonaws.com/update/state/${1}/${2}/windows-amd64/state-windows-amd64-${2}.zip
298
- unzip state-windows-amd64-${2}.zip
299
- cp -Rfv state-install/bin/state.exe $project.path()/.github/deps/Windows/bin
300
- cp -Rfv state-install/bin/state-svc.exe $project.path()/.github/deps/Windows/bin
301
- popd
302
- rm -Rf $tmpDir
252
+ GOOS=windows go build -o .github/deps/Windows/amd64/bin/parallelize.exe github.com/ActiveState/cli/scripts/ci/parallelize/
253
+ GOOS=linux go build -o .github/deps/Linux/amd64/bin/parallelize github.com/ActiveState/cli/scripts/ci/parallelize/
254
+ GOOS=linux GOARCH=arm64 go build -o .github/deps/Linux/arm64/bin/parallelize github.com/ActiveState/cli/scripts/ci/parallelize/
255
+ GOOS=darwin go build -o .github/deps/macOS/amd64/bin/parallelize github.com/ActiveState/cli/scripts/ci/parallelize/
303
256
- name : test
304
257
language : bash
305
258
standalone : true
0 commit comments