Skip to content

Commit

Permalink
bazel(ci): Setup python version
Browse files Browse the repository at this point in the history
  • Loading branch information
Mizux committed Jul 10, 2023
1 parent 1dd922c commit fee1da3
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 6 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/amd64_linux_bazel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,23 @@ jobs:
# Building using the github runner environement directly.
bazel:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
fail-fast: false
env:
CC: gcc-12
CXX: g++-12
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Check java
- uses: actions/checkout@v3
- name: Check Java
run: java -version
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Check Python
run: python --version
- name: Install Bazel
run: |
curl -fsSL https://bazel.build/bazel-release.pub.gpg | gpg --dearmor > bazel.gpg
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/amd64_macos_bazel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@ name: amd64 MacOS Bazel
on: [push, pull_request]

jobs:
# Building using the github runner environement directly.
bazel:
runs-on: macos-latest
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
fail-fast: false
steps:
- name: Check out repository code
uses: actions/checkout@v3
Expand All @@ -16,6 +21,12 @@ jobs:
java-version: '17'
- name: Check mvn
run: mvn --version
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Check Python
run: python --version
- name: Install Bazel
run: |
brew update
Expand Down
13 changes: 10 additions & 3 deletions .github/workflows/amd64_windows_bazel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ jobs:
strategy:
matrix:
runner: [windows-2022, windows-2019]
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
fail-fast: false # Don't cancel all jobs if one fails.
runs-on: ${{ matrix.runner }}
#runs-on: windows-latest
Expand All @@ -22,10 +23,16 @@ jobs:
run: java -version
- name: Check mvn
run: mvn --version
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Check Python
run: python --version
- name: Install Bazel
run: |
choco install bazel
bazel --version
run: choco install bazel
- name: Check Bazel
run: bazel version
- name: Build
run: >
bazel build
Expand Down

0 comments on commit fee1da3

Please sign in to comment.