Skip to content

Commit

Permalink
Lock down actions versions
Browse files Browse the repository at this point in the history
  • Loading branch information
pjreiniger committed Apr 29, 2024
1 parent d3b0c37 commit ea3b0a2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@ jobs:
matrix:
include:
# Build standard, native
- { name: "windows - native", os: windows-2019, command: "build", config: "--config=windows", bazel_options: "", }
- { name: "ubuntu - native", os: ubuntu-latest, command: "build", config: "--config=linux", bazel_options: "", }
- { name: "macos - native", os: macos-latest, command: "build", config: "--config=macos", bazel_options: "", }
- { name: "windows - native", os: windows-2022, command: "build", config: "--config=windows", bazel_options: "", }
- { name: "ubuntu - native", os: ubuntu-22.04, command: "build", config: "--config=linux", bazel_options: "", }
- { name: "macos - native", os: macos-12, command: "build", config: "--config=macos", bazel_options: "", }

# Build bzlmod, native
- { name: "windows - bzlmod native", os: windows-2019, command: "build", config: "--enable_bzlmod --config=windows", bazel_options: "", }
- { name: "ubuntu - bzlmod native", os: ubuntu-latest, command: "build", config: "--enable_bzlmod --config=linux", bazel_options: "", }
- { name: "macos - bzlmod native", os: macos-latest, command: "build", config: "--enable_bzlmod --config=macos", bazel_options: "", }
- { name: "windows - bzlmod native", os: windows-2022, command: "build", config: "--enable_bzlmod --config=windows", bazel_options: "", }
- { name: "ubuntu - bzlmod native", os: ubuntu-22.04, command: "build", config: "--enable_bzlmod --config=linux", bazel_options: "", }
- { name: "macos - bzlmod native", os: macos-12, command: "build", config: "--enable_bzlmod --config=macos", bazel_options: "", }

name: "Build - ${{ matrix.name }}"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with: { python-version: '3.10.8' }
with: { python-version: '3.11' }
- run: bazel ${{ matrix.command }} //... -k ${{ matrix.config }} --config=remote --verbose_failures
8 changes: 4 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ on: [pull_request, push]

jobs:
lint_python:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: psf/black@stable
wpiformat:
name: "wpiformat"
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -20,7 +20,7 @@ jobs:
git branch -f main origin/main
if: github.ref != 'refs/heads/main'
- uses: actions/setup-python@v4
with: { python-version: '3.10.8' }
with: { python-version: '3.11' }
- name: Install clang-format
run: |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
Expand All @@ -34,7 +34,7 @@ jobs:
run: git --no-pager diff --exit-code HEAD
buildifier:
name: "buildifier"
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Set up Go 1.20.x
uses: actions/setup-go@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ concurrency:
jobs:
publish_module:
name: "Publish Module"
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
# Checkout repository
- uses: actions/checkout@v4
Expand Down

0 comments on commit ea3b0a2

Please sign in to comment.