Build and store the binary on non-release builds

This commit is contained in:
Chris Roberts 2022-07-26 11:38:41 -07:00
parent c736a528ca
commit 62d16b3b9f
2 changed files with 17 additions and 3 deletions

View File

@ -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"

View File

@ -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: