From 459ae711b2e2fbef4680e43570318cd2034cfd72 Mon Sep 17 00:00:00 2001 From: Utkarsh Umesan Pillai <66651184+utpilla@users.noreply.github.com> Date: Thu, 2 May 2024 16:25:33 -0700 Subject: [PATCH 1/2] Update CI workflow --- .github/workflows/ci.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c2853fa3f9..4e688750e2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,8 @@ jobs: strategy: matrix: rust: [stable, beta] - runs-on: ubuntu-latest + os: [ windows-latest, ubuntu-latest ] + runs-on: ${{ matrix.os }} steps: - name: Free disk space run: | @@ -34,7 +35,7 @@ jobs: - name: Test run: ./scripts/test.sh lint: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 with: @@ -53,7 +54,7 @@ jobs: strategy: matrix: example: [opentelemetry, opentelemetry-sdk, opentelemetry-otlp, opentelemetry-zipkin] - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@nightly @@ -69,7 +70,7 @@ jobs: strategy: matrix: example: [opentelemetry-otlp/examples/basic-otlp] - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 with: @@ -83,7 +84,7 @@ jobs: cd ${{ matrix.example }} cargo build --verbose msrv: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 with: @@ -97,7 +98,7 @@ jobs: cargo test --manifest-path=opentelemetry-jaeger/Cargo.toml --features rt-tokio && cargo test --manifest-path=opentelemetry-zipkin/Cargo.toml cargo-deny: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} continue-on-error: true # Prevent sudden announcement of a new advisory from failing ci steps: - uses: actions/checkout@v4 @@ -106,7 +107,7 @@ jobs: command: check advisories docs: continue-on-error: true - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@nightly @@ -120,7 +121,7 @@ jobs: RUSTDOCFLAGS: -Dwarnings coverage: continue-on-error: true - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} if: ${{ ! contains(github.event.pull_request.labels.*.name, 'dependencies') }} steps: - uses: actions/checkout@v4 From a61e7c36d448e6b0510e9de9d7110695c3e3b6c3 Mon Sep 17 00:00:00 2001 From: Utkarsh Umesan Pillai <66651184+utpilla@users.noreply.github.com> Date: Thu, 2 May 2024 16:32:07 -0700 Subject: [PATCH 2/2] Fix CI --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4e688750e2..210ecbde4c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,6 +17,7 @@ jobs: runs-on: ${{ matrix.os }} steps: - name: Free disk space + if: ${{ matrix.os == 'ubuntu-latest'}} run: | df -h sudo rm -rf /usr/local/lib/android