Skip to content

Avoid use of openssl in rust example (#2) #30

Avoid use of openssl in rust example (#2)

Avoid use of openssl in rust example (#2) #30

Workflow file for this run

name: CI
on:
push:
branches:
- main
merge_group:
pull_request:
types:
- opened
- synchronize
env:
BAZEL_STARTUP_FLAGS: --bazelrc=${{ github.workspace }}/.github/github.bazelrc
jobs:
ci:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: macos-latest
- os: ubuntu-24.04
- os: ubuntu-24.04-arm
- os: windows-2022
steps:
# Checkout the code
- uses: actions/checkout@v4
- uses: bazel-contrib/setup-bazel@0.14.0
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}
repository-cache: true
- name: Setup Bazelrc (Windows)
run: |
echo "TEMP=$env:RUNNER_TEMP" >> "$env:GITHUB_ENV"
echo "TMP=$env:RUNNER_TEMP" >> "$env:GITHUB_ENV"
echo "startup --output_user_root=D:/bzl" > ./user.bazelrc
if: startswith(runner.os, 'Windows')
- name: Setup Bazelrc
run: |
echo "common --keep_going" >> ./user.bazelrc
# Build and Test the code
- name: Test (Unix)
run: bazel ${BAZEL_STARTUP_FLAGS[@]} test //...
if: startswith(runner.os, 'Windows') != true
- name: Test (Windows)
run: bazel $env:BAZEL_STARTUP_FLAGS test //...
if: startswith(runner.os, 'Windows')
# Upload test logs for debugging (runs even if tests fail)
- name: Upload test logs
uses: actions/upload-artifact@v4
if: always()
with:
name: bazel-testlogs-${{ matrix.os }}
path: bazel-testlogs/
retention-days: 7
if-no-files-found: ignore
ci-examples-rust:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-24.04
- os: ubuntu-24.04-arm
- os: windows-2022
# TODO: Github macos runners don't support docker
# - os: macos-latest
steps:
# Checkout the code
- uses: actions/checkout@v4
- uses: bazel-contrib/setup-bazel@0.14.0
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}
repository-cache: true
- name: Setup Bazelrc (Windows)
run: |
echo "TEMP=$env:RUNNER_TEMP" >> "$env:GITHUB_ENV"
echo "TMP=$env:RUNNER_TEMP" >> "$env:GITHUB_ENV"
echo "startup --output_user_root=D:/bzl" > ./user.bazelrc
if: startswith(runner.os, 'Windows')
working-directory: "${{ github.workspace }}/examples/rust"
- name: Setup Bazelrc
run: |
echo "common --keep_going" >> ./user.bazelrc
working-directory: "${{ github.workspace }}/examples/rust"
# Build and Test the code
- name: Test (Unix)
run: bazel ${BAZEL_STARTUP_FLAGS[@]} test //...
if: startswith(runner.os, 'Windows') != true
working-directory: "${{ github.workspace }}/examples/rust"
- name: Test (Windows)
run: bazel $env:BAZEL_STARTUP_FLAGS test //...
if: startswith(runner.os, 'Windows')
working-directory: "${{ github.workspace }}/examples/rust"
ci-examples-python:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-24.04
- os: ubuntu-24.04-arm
- os: windows-2022
# TODO: Github macos runners don't support docker
# - os: macos-latest
steps:
# Checkout the code
- uses: actions/checkout@v4
- uses: bazel-contrib/setup-bazel@0.14.0
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}
repository-cache: true
- name: Setup Bazelrc (Windows)
run: |
echo "TEMP=$env:RUNNER_TEMP" >> "$env:GITHUB_ENV"
echo "TMP=$env:RUNNER_TEMP" >> "$env:GITHUB_ENV"
echo "startup --output_user_root=D:/bzl" > ./user.bazelrc
if: startswith(runner.os, 'Windows')
working-directory: "${{ github.workspace }}/examples/python"
- name: Setup Bazelrc
run: |
echo "common --keep_going" >> ./user.bazelrc
working-directory: "${{ github.workspace }}/examples/python"
# Build and Test the code
- name: Test (Unix)
run: bazel ${BAZEL_STARTUP_FLAGS[@]} test //...
if: startswith(runner.os, 'Windows') != true
working-directory: "${{ github.workspace }}/examples/python"
- name: Test (Windows)
run: bazel $env:BAZEL_STARTUP_FLAGS test //...
if: startswith(runner.os, 'Windows')
working-directory: "${{ github.workspace }}/examples/python"
ci-format:
runs-on: ubuntu-24.04
steps:
# Checkout the code
- uses: actions/checkout@v4
- uses: bazel-contrib/setup-bazel@0.14.0
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}
repository-cache: true
- name: Buildifier
run: |
wget "https://github.com/bazelbuild/buildtools/releases/download/v${BUILDIFIER_VERSION}/buildifier-linux-amd64" -O buildifier
chmod +x ./buildifier
./buildifier -lint=warn -mode=check -warnings=all -r ${{ github.workspace }}
rm ./buildifier
env:
BUILDIFIER_VERSION: 8.2.0
- uses: Jerome1337/gofmt-action@v1.0.5
with:
gofmt-flags: -e -d