Skip to content

Commit

Permalink
bazel(ci): fix workflows
Browse files Browse the repository at this point in the history
* Fix almalinux and rockylinux
* Fix debian
* Fix opensuse job
* Fix macos bazel workfow
  • Loading branch information
Mizux committed Jul 19, 2024
1 parent 85c64a8 commit 5a56473
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/amd64_macos_bazel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ jobs:
run: python --version
- name: Check Bazel
run: bazel version
- name: Change Python in WORKSPACE
run: >
sed
-i ''
-e 's/\(DEFAULT_PYTHON =\) "3.[0-9]*"/\1 "${{ matrix.python.version }}"/g'
WORKSPACE
- name: Build
run: >
bazel build
Expand Down
1 change: 1 addition & 0 deletions bazel/docker/almalinux/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ RUN dnf -y update \
FROM env AS devel
WORKDIR /home/project
COPY . .
RUN sed -i 's/\(DEFAULT_PYTHON =\) "3.[0-9]\+"/\1 "3.9"/' WORKSPACE

FROM devel AS build
RUN bazel version
Expand Down
1 change: 1 addition & 0 deletions bazel/docker/debian/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ RUN apt-get update -qq \
FROM env AS devel
WORKDIR /home/project
COPY . .
RUN sed -i 's/\(DEFAULT_PYTHON =\) "3.[0-9]\+"/\1 "3.11"/' WORKSPACE

FROM devel AS build
RUN bazel version
Expand Down
1 change: 1 addition & 0 deletions bazel/docker/opensuse/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ RUN zypper update -y \
FROM env AS devel
WORKDIR /home/project
COPY . .
RUN sed -i 's/\(DEFAULT_PYTHON =\) "3.[0-9]\+"/\1 "3.11"/' WORKSPACE

FROM devel AS build
RUN bazel version
Expand Down
1 change: 1 addition & 0 deletions bazel/docker/rockylinux/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ RUN dnf -y update \
FROM env AS devel
WORKDIR /home/project
COPY . .
RUN sed -i 's/\(DEFAULT_PYTHON =\) "3.[0-9]\+"/\1 "3.9"/' WORKSPACE

FROM devel AS build
RUN bazel version
Expand Down

0 comments on commit 5a56473

Please sign in to comment.