Skip to content

Commit 03582b1

Browse files
committed
container
1 parent 8a1f597 commit 03582b1

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

.github/workflows/container_build.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
- 'container'
66
jobs:
77
build-ubuntu:
8-
runs-on: ubuntu-22.04
8+
runs-on: ubuntu-latest
99
container:
1010
image: ubuntu:20.04
1111
env:
@@ -16,13 +16,17 @@ jobs:
1616
uses: actions/checkout@v3
1717
with:
1818
path: opentelemetry-matlab
19-
- name: Install compiler, and Git
19+
- name: Install compiler and other tools
2020
run: apt update && apt install -y build-essential git curl pkg-config zip python3
21-
- name: Install cmake and ninja
22-
uses: lukka/get-cmake@latest
21+
- name: Install CMake and Ninja
22+
uses: lukka/get-cmake@v4.1.2
2323
with:
2424
cmakeVersion: latest
2525
ninjaVersion: latest
26+
- name: Check CMake and Ninja versions
27+
run: |
28+
cmake --version
29+
ninja --version
2630
- name: Install MATLAB
2731
uses: matlab-actions/setup-matlab@v2
2832
with:
@@ -31,13 +35,10 @@ jobs:
3135
- name: Build OpenTelemetry-Matlab
3236
working-directory: opentelemetry-matlab
3337
run: |
34-
cmake --trace -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DWITH_OTLP_GRPC=ON -DWITH_OTLP_FILE=ON -DOTEL_MATLAB_VERSION=1.0.0 -DCMAKE_INSTALL_PREFIX=${{ env.OPENTELEMETRY_MATLAB_INSTALL }}
38+
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DWITH_OTLP_GRPC=ON -DWITH_OTLP_FILE=ON -DOTEL_MATLAB_VERSION=1.0.0 -DCMAKE_INSTALL_PREFIX=${{ env.OPENTELEMETRY_MATLAB_INSTALL }}
3539
cmake --build build --config Release --target install
36-
pwd
3740
- name: Compress into single artifact
38-
run: |
39-
pwd
40-
tar -czf otel-matlab-ubuntu.tar.gz otel_matlab_install
41+
run: tar -czf otel-matlab-ubuntu.tar.gz otel_matlab_install
4142
- name: Upload artifacts
4243
uses: actions/upload-artifact@v4
4344
with:

0 commit comments

Comments
 (0)