Build and store the binary on non-release builds
This commit is contained in:
parent
c736a528ca
commit
62d16b3b9f
10
.ci/build.sh
10
.ci/build.sh
@ -16,5 +16,15 @@ wrap gem build *.gemspec \
|
||||
g=(vagrant*.gem)
|
||||
gem=$(printf "%s" "${g}")
|
||||
|
||||
# Store the gem asset
|
||||
wrap aws s3 cp "${gem}" "${ASSETS_PRIVATE_BUCKET}/${repository}/vagrant-main.gem" \
|
||||
"Failed to store Vagrant RubyGem main build"
|
||||
|
||||
# Build our binary
|
||||
wrap make \
|
||||
"Failed to build the Vagrant go binary"
|
||||
wrap zip vagrant-go vagrant-go \
|
||||
"Failed to compress go binary"
|
||||
|
||||
# Store the binary asset
|
||||
wrap aws s3 cp vagrant-go.zip "${ASSETS_PRIVATE_BUCKET}/${repository}/vagrant-go-main.zip"
|
||||
|
||||
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
@ -14,11 +14,15 @@ jobs:
|
||||
steps:
|
||||
- name: Code Checkout
|
||||
uses: actions/checkout@v1
|
||||
- name: Set Ruby
|
||||
- name: Setup Ruby
|
||||
uses: ruby/setup-ruby@v1
|
||||
with:
|
||||
ruby-version: '2.6'
|
||||
- name: Build RubyGem
|
||||
ruby-version: '2.7'
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: '>=1.17.11'
|
||||
- name: Build RubyGem and binary
|
||||
run: ./.ci/build.sh
|
||||
working-directory: ${{github.workspace}}
|
||||
env:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user