Created
January 21, 2021 22:52
-
-
Save HunterLarco/48255636f49e23df1aa992f9ddd249f6 to your computer and use it in GitHub Desktop.
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: release | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
lfs: true | |
- name: Mount bazel cache | |
uses: actions/cache@v1 | |
with: | |
path: "/home/runner/.cache/bazel" | |
key: bazel | |
- name: Install bazelisk | |
run: | | |
curl -LO "https://github.com/bazelbuild/bazelisk/releases/download/v1.7.4/bazelisk-linux-amd64" | |
mkdir -p "${GITHUB_WORKSPACE}/bin/" | |
mv bazelisk-linux-amd64 "${GITHUB_WORKSPACE}/bin/bazel" | |
chmod +x "${GITHUB_WORKSPACE}/bin/bazel" | |
- name: Test | |
run: | | |
"${GITHUB_WORKSPACE}/bin/bazel" test src/... | |
- name: Build | |
run: | | |
"${GITHUB_WORKSPACE}/bin/bazel" build src/server:image.tar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment