Merge pull request #9685 from filecoin-project/gstuart/backport-goreleaser

baackport: ci: Fix issues with new goreleaser flow
This commit is contained in:
Shrenuj Bansal 2022-11-18 12:54:11 -05:00 committed by GitHub
commit 93c2e02235
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 18 additions and 5 deletions

View File

@ -97,6 +97,7 @@ commands:
sudo bash install.sh sudo bash install.sh
popd popd
rm -rf kubo rm -rf kubo
rm kubo_v0.16.0_linux-amd64.tar.gz
git_fetch_all_tags: git_fetch_all_tags:
steps: steps:
- run: - run:
@ -384,13 +385,13 @@ jobs:
- when: - when:
condition: << parameters.dry-run >> condition: << parameters.dry-run >>
steps: steps:
- run: goreleaser release --rm-dist --snapshot - run: goreleaser release --rm-dist --snapshot --debug
- run: ./scripts/generate-checksums.sh - run: ./scripts/generate-checksums.sh
- when: - when:
condition: condition:
not: << parameters.dry-run >> not: << parameters.dry-run >>
steps: steps:
- run: goreleaser release --rm-dist - run: goreleaser release --rm-dist --debug
- run: ./scripts/generate-checksums.sh - run: ./scripts/generate-checksums.sh
- run: ./scripts/publish-checksums.sh - run: ./scripts/publish-checksums.sh
@ -1143,6 +1144,8 @@ workflows:
- /^v\d+\.\d+\.\d+(-rc\d+)?$/ - /^v\d+\.\d+\.\d+(-rc\d+)?$/
- release: - release:
name: "Release" name: "Release"
context:
- filecoin-goreleaser-key
requires: requires:
- "Build ( darwin / amd64 )" - "Build ( darwin / amd64 )"
- "Build ( linux / amd64 )" - "Build ( linux / amd64 )"
@ -1156,6 +1159,8 @@ workflows:
- /^v\d+\.\d+\.\d+(-rc\d+)?$/ - /^v\d+\.\d+\.\d+(-rc\d+)?$/
- release: - release:
name: "Release (dry-run)" name: "Release (dry-run)"
context:
- filecoin-goreleaser-key
dry-run: true dry-run: true
requires: requires:
- "Build ( darwin / amd64 )" - "Build ( darwin / amd64 )"

View File

@ -97,6 +97,7 @@ commands:
sudo bash install.sh sudo bash install.sh
popd popd
rm -rf kubo rm -rf kubo
rm kubo_v0.16.0_linux-amd64.tar.gz
git_fetch_all_tags: git_fetch_all_tags:
steps: steps:
- run: - run:
@ -384,13 +385,13 @@ jobs:
- when: - when:
condition: << parameters.dry-run >> condition: << parameters.dry-run >>
steps: steps:
- run: goreleaser release --rm-dist --snapshot - run: goreleaser release --rm-dist --snapshot --debug
- run: ./scripts/generate-checksums.sh - run: ./scripts/generate-checksums.sh
- when: - when:
condition: condition:
not: << parameters.dry-run >> not: << parameters.dry-run >>
steps: steps:
- run: goreleaser release --rm-dist - run: goreleaser release --rm-dist --debug
- run: ./scripts/generate-checksums.sh - run: ./scripts/generate-checksums.sh
- run: ./scripts/publish-checksums.sh - run: ./scripts/publish-checksums.sh
@ -838,6 +839,8 @@ workflows:
- /^v\d+\.\d+\.\d+(-rc\d+)?$/ - /^v\d+\.\d+\.\d+(-rc\d+)?$/
- release: - release:
name: "Release" name: "Release"
context:
- filecoin-goreleaser-key
requires: requires:
- "Build ( darwin / amd64 )" - "Build ( darwin / amd64 )"
- "Build ( linux / amd64 )" - "Build ( linux / amd64 )"
@ -851,6 +854,8 @@ workflows:
- /^v\d+\.\d+\.\d+(-rc\d+)?$/ - /^v\d+\.\d+\.\d+(-rc\d+)?$/
- release: - release:
name: "Release (dry-run)" name: "Release (dry-run)"
context:
- filecoin-goreleaser-key
dry-run: true dry-run: true
requires: requires:
- "Build ( darwin / amd64 )" - "Build ( darwin / amd64 )"

View File

@ -13,6 +13,7 @@ universal_binaries:
builds: builds:
- id: lotus - id: lotus
binary: lotus
builder: prebuilt builder: prebuilt
goos: goos:
- darwin - darwin
@ -28,6 +29,7 @@ builds:
prebuilt: prebuilt:
path: /tmp/workspace/{{ .Os }}_{{ .Arch }}{{ with .Amd64 }}_{{ . }}{{ end }}/lotus path: /tmp/workspace/{{ .Os }}_{{ .Arch }}{{ with .Amd64 }}_{{ . }}{{ end }}/lotus
- id: lotus-miner - id: lotus-miner
binary: lotus-miner
builder: prebuilt builder: prebuilt
goos: goos:
- darwin - darwin
@ -43,6 +45,7 @@ builds:
prebuilt: prebuilt:
path: /tmp/workspace/{{ .Os }}_{{ .Arch }}{{ with .Amd64 }}_{{ . }}{{ end }}/lotus-miner path: /tmp/workspace/{{ .Os }}_{{ .Arch }}{{ with .Amd64 }}_{{ . }}{{ end }}/lotus-miner
- id: lotus-worker - id: lotus-worker
binary: lotus-worker
builder: prebuilt builder: prebuilt
goos: goos:
- darwin - darwin

View File

@ -20,7 +20,7 @@ PID="$!"
trap "kill -9 ${PID}" EXIT trap "kill -9 ${PID}" EXIT
sleep 30 sleep 30
cp "../appimage/Lotus-${CIRCLE_TAG}-x86_64.AppImage" . cp "/tmp/workspace/appimage/Lotus-${CIRCLE_TAG}-x86_64.AppImage" .
sha512sum "Lotus-${CIRCLE_TAG}-x86_64.AppImage" > "Lotus-${CIRCLE_TAG}-x86_64.AppImage.sha512" sha512sum "Lotus-${CIRCLE_TAG}-x86_64.AppImage" > "Lotus-${CIRCLE_TAG}-x86_64.AppImage.sha512"
ipfs add -q "Lotus-${CIRCLE_TAG}-x86_64.AppImage" > "Lotus-${CIRCLE_TAG}-x86_64.AppImage.cid" ipfs add -q "Lotus-${CIRCLE_TAG}-x86_64.AppImage" > "Lotus-${CIRCLE_TAG}-x86_64.AppImage.cid"
popd popd