-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Add tests for various OSes and Bazel versions (#17)
- Loading branch information
Showing
16 changed files
with
119 additions
and
44 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,34 @@ | ||
--- | ||
name: Set up environment | ||
|
||
inputs: | ||
bazel-version: | ||
description: Bazel version | ||
required: true | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Generate .bazeliskrc | ||
shell: bash | ||
run: | | ||
echo "USE_BAZEL_VERSION=${{ inputs.bazel-version }}" > .bazeliskrc | ||
echo "USE_BAZEL_VERSION=${{ inputs.bazel-version }}" > examples/.bazeliskrc | ||
- name: Install bazelisk | ||
shell: bash | ||
run: | | ||
bazelisk_dir="$(realpath "$(mktemp -d -p .)")" | ||
wget https://github.com/bazelbuild/bazelisk/releases/download/v1.19.0/bazelisk-linux-amd64 \ | ||
bazelisk_dir=bazelisk-bin-dir | ||
mkdir "${bazelisk_dir}" | ||
if [ "${RUNNER_OS}" == "Linux" ]; then | ||
part_os="linux" | ||
elif [ "${RUNNER_OS}" == "macOS" ]; then | ||
part_os="darwin" | ||
else | ||
echo "${RUNNER_OS} not supported" | ||
exit 1 | ||
fi | ||
wget "https://github.com/bazelbuild/bazelisk/releases/download/v1.19.0/bazelisk-${part_os}-amd64" \ | ||
-O "${bazelisk_dir}/bazelisk" | ||
chmod +x "${bazelisk_dir}/bazelisk" | ||
echo "${bazelisk_dir}" >> "${GITHUB_PATH}" |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
# Bazel | ||
/bazel-* | ||
MODULE.bazel.lock | ||
.bazeliskrc | ||
|
||
# For CI | ||
/bazelisk-bin-dir |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../.bazelignore |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../.bazelrc |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
# Copied from the original workspace | ||
.bazelrc | ||
.bazeliskrc | ||
.bazelignore | ||
|
||
# Bazel | ||
/bazel-* | ||
|
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
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
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
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