ci: build and upload cli binary #19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build npm package for jstz CLI | |
on: | |
# For manually rebuilding the images | |
pull_request: | |
jobs: | |
build-cli-mac: | |
name: Build CLI for MacOS Arm64 | |
runs-on: macos | |
steps: | |
- uses: jstz-dev/jstz/.github/actions/build-cli@huanchengchang-jstz-275 | |
with: | |
kind: macos_arm64 | |
build-cli-linux: | |
name: Build CLI for Linux AMD64 | |
runs-on: test | |
steps: | |
- uses: jstz-dev/jstz/.github/actions/build-cli@huanchengchang-jstz-275 | |
with: | |
kind: linux_amd64 | |
last: | |
needs: [build-cli-mac, build-cli-linux] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Final | |
env: | |
link_macos: ${{needs.build-cli-mac.outputs.browser_download_url}} | |
link_linux: ${{needs.build-cli-linux.outputs.browser_download_url}} | |
run: | | |
echo "Links: $link_macos $link_linux" |