Skip to content

Commit 146bf69

Browse files
committed
Fix failing GitHub Actions pipelines
1 parent f6b7c21 commit 146bf69

11 files changed

+136
-70
lines changed

.github/actions/build-test-and-publish-matlab-deps/action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ runs:
3131
steps:
3232
# Invalid combination would error out.
3333
- name: Invalid combination of should_add_latest_tag set to true and is_default_os set to false
34-
if: ${{ inputs.should_add_latest_tag == true && inputs.is_default_os == false }}
34+
if: ${{ inputs.should_add_latest_tag == 'true' && inputs.is_default_os == 'false' }}
3535
shell: bash
3636
run: |
3737
echo "Invalid situation detected. A workflow marked as latest must also set the default os to be true. "
@@ -56,7 +56,7 @@ runs:
5656

5757
# Example tags: r2023a-ubuntu20.04, R2023a-ubuntu20.04
5858
- name: Build Image
59-
if: ${{ inputs.should_add_latest_tag == false && inputs.is_default_os == false }}
59+
if: ${{ inputs.should_add_latest_tag == 'false' && inputs.is_default_os == 'false' }}
6060
uses: docker/build-push-action@v6
6161
with:
6262
context: ${{ inputs.docker_build_context }}
@@ -68,7 +68,7 @@ runs:
6868
6969
# Example tags: r2023a-ubuntu20.04, R2023a-ubuntu20.04, r2023a, R2023a
7070
- name: Build Image for latest OS
71-
if: ${{ inputs.should_add_latest_tag == false && inputs.is_default_os == true }}
71+
if: ${{ inputs.should_add_latest_tag == 'false' && inputs.is_default_os == 'true' }}
7272
uses: docker/build-push-action@v6
7373
with:
7474
context: ${{ inputs.docker_build_context }}
@@ -82,7 +82,7 @@ runs:
8282
8383
# Example tags: r2023a-ubuntu20.04, R2023a-ubuntu20.04, r2023a, R2023a, latest
8484
- name: Build Image with latest Tag for latest OS
85-
if: ${{ inputs.should_add_latest_tag == true && inputs.is_default_os == true }}
85+
if: ${{ inputs.should_add_latest_tag == 'true' && inputs.is_default_os == 'true' }}
8686
uses: docker/build-push-action@v6
8787
with:
8888
context: ${{ inputs.docker_build_context }}

.github/workflows/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ For example:
7171
...
7272
with:
7373
docker_build_context: './matlab-deps/r2023a/ubuntu20.04'
74-
base_image_name: mathworks/matlab-deps
74+
image_name: mathworks/matlab-deps
7575
matlab_release_tag: 'r2023a'
7676
os_info_tag: 'ubuntu20.04'
7777
should_add_latest_tag: true
@@ -92,7 +92,7 @@ Each workflow must set the following `inputs` to the `reusable-workflow`:
9292
description: 'Relative path to folder with Dockerfile. Ex: ./matlab-deps/r2023a/ubuntu20.04 '
9393
required: true
9494
type: string
95-
base_image_name:
95+
image_name:
9696
description: 'Name of base image. Example: mathworks/matlab-deps'
9797
required: true
9898
type: string

.github/workflows/build-test-and-publish-matlab-deps.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,5 +146,5 @@ jobs:
146146
matlab_release_tag: ${{ matrix.input.release_tag }}
147147
os_info_tag: ${{ matrix.input.os_info_tag }}
148148
is_default_os: ${{ matrix.input.os_info_tag == matrix.input.default_os }}
149-
should_add_latest_tag: ${{ (matrix.input.os_info_tag == matrix.input.default_os) && (matrix.input.release_tag == github.env.latest_release) }}
149+
should_add_latest_tag: ${{ matrix.input.os_info_tag == matrix.input.default_os && matrix.input.release_tag == env.latest_release }}
150150
test_file_path: tests/matlab-deps/${{ matrix.input.test_file_name }}

.github/workflows/build-test-and-publish-matlab.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
variant: matlab
8181
matlab_release: ${{ matrix.matlab_release }}
8282
matlab_license_file: ${{ secrets.MATLAB_LICENSE_FILE_R2024B }}
83-
base_image_name: "mathworks/matlab"
83+
image_name: "mathworks/matlab"
8484

8585
- name: Build, Test, and Publish MATLAB Deep Learning
8686
# Run this step even if the previous step failed
@@ -90,7 +90,7 @@ jobs:
9090
variant: matlab-deep-learning
9191
matlab_release: ${{ matrix.matlab_release }}
9292
matlab_license_file: ${{ secrets.MATLAB_LICENSE_FILE_R2024B }}
93-
base_image_name: "mathworks/matlab-deep-learning"
93+
image_name: "mathworks/matlab-deep-learning"
9494

9595
- name: Fail job if any tests failed
9696
if: steps.build-test-and-publish-matlab-to-dockerhub.outcome == 'failure'

.github/workflows/matlab-runtime-deps-r2023b-ubuntu22.04.yml

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,24 @@ on:
1818
workflow_dispatch:
1919

2020
jobs:
21-
build-and-publish-image:
22-
uses: ./.github/workflows/build-test-and-publish-dependencies-image.yml
23-
secrets: inherit
24-
with:
25-
docker_build_context: './matlab-runtime-deps/r2023b/ubuntu22.04'
26-
base_image_name: mathworks/matlab-runtime-deps
27-
matlab_release_tag: 'r2023b'
28-
os_info_tag: 'ubuntu22.04'
29-
is_default_os: true
30-
should_add_latest_tag: false
21+
build-and-publish:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Checkout repo
25+
uses: actions/checkout@v4
26+
27+
- name: Login to Docker Hub
28+
uses: docker/login-action@v2
29+
with:
30+
username: ${{ secrets.DOCKERHUB_USERNAME }}
31+
password: ${{ secrets.DOCKERHUB_TOKEN }}
32+
33+
- name: Build, and Publish MATLAB Runtime Dependencies
34+
uses: ./.github/actions/build-test-and-publish-matlab-deps
35+
with:
36+
docker_build_context: './matlab-runtime-deps/r2023b/ubuntu22.04'
37+
image_name: mathworks/matlab-runtime-deps
38+
matlab_release_tag: 'r2023b'
39+
os_info_tag: 'ubuntu22.04'
40+
is_default_os: true
41+
should_add_latest_tag: false

.github/workflows/matlab-runtime-deps-r2024a-ubuntu22.04.yml

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,24 @@ on:
1818
workflow_dispatch:
1919

2020
jobs:
21-
build-and-publish-image:
22-
uses: ./.github/workflows/build-test-and-publish-dependencies-image.yml
23-
secrets: inherit
24-
with:
25-
docker_build_context: './matlab-runtime-deps/r2024a/ubuntu22.04'
26-
base_image_name: mathworks/matlab-runtime-deps
27-
matlab_release_tag: 'r2024a'
28-
os_info_tag: 'ubuntu22.04'
29-
is_default_os: true
30-
should_add_latest_tag: false
21+
build-and-publish:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Checkout repo
25+
uses: actions/checkout@v4
26+
27+
- name: Login to Docker Hub
28+
uses: docker/login-action@v2
29+
with:
30+
username: ${{ secrets.DOCKERHUB_USERNAME }}
31+
password: ${{ secrets.DOCKERHUB_TOKEN }}
32+
33+
- name: Build, and Publish MATLAB Runtime Dependencies
34+
uses: ./.github/actions/build-test-and-publish-matlab-deps
35+
with:
36+
docker_build_context: './matlab-runtime-deps/r2024a/ubuntu22.04'
37+
image_name: mathworks/matlab-runtime-deps
38+
matlab_release_tag: 'r2024a'
39+
os_info_tag: 'ubuntu22.04'
40+
is_default_os: true
41+
should_add_latest_tag: false

.github/workflows/matlab-runtime-deps-r2024b-ubuntu24.04.yml

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,24 @@ on:
1818
workflow_dispatch:
1919

2020
jobs:
21-
build-and-publish-image:
22-
uses: ./.github/workflows/build-test-and-publish-dependencies-image.yml
23-
secrets: inherit
24-
with:
25-
docker_build_context: './matlab-runtime-deps/r2024b/ubuntu24.04'
26-
base_image_name: mathworks/matlab-runtime-deps
27-
matlab_release_tag: 'r2024b'
28-
os_info_tag: 'ubuntu24.04'
29-
is_default_os: true
30-
should_add_latest_tag: true
21+
build-and-publish:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Checkout repo
25+
uses: actions/checkout@v4
26+
27+
- name: Login to Docker Hub
28+
uses: docker/login-action@v2
29+
with:
30+
username: ${{ secrets.DOCKERHUB_USERNAME }}
31+
password: ${{ secrets.DOCKERHUB_TOKEN }}
32+
33+
- name: Build, and Publish MATLAB Runtime Dependencies
34+
uses: ./.github/actions/build-test-and-publish-matlab-deps
35+
with:
36+
docker_build_context: './matlab-runtime-deps/r2024b/ubuntu24.04'
37+
image_name: mathworks/matlab-runtime-deps
38+
matlab_release_tag: 'r2024b'
39+
os_info_tag: 'ubuntu24.04'
40+
is_default_os: true
41+
should_add_latest_tag: true

.github/workflows/polyspace-deps-r2022b-ubuntu20.04.yml

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,24 @@ on:
1818
workflow_dispatch:
1919

2020
jobs:
21-
build-and-publish-image:
22-
uses: ./.github/workflows/build-test-and-publish-dependencies-image.yml
23-
secrets: inherit
24-
with:
25-
docker_build_context: './polyspace-deps/r2022b/ubuntu20.04'
26-
base_image_name: mathworks/polyspace-deps
27-
matlab_release_tag: 'r2022b'
28-
os_info_tag: 'ubuntu20.04'
29-
is_default_os: true
30-
should_add_latest_tag: false
21+
build-and-publish:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Checkout repo
25+
uses: actions/checkout@v4
26+
27+
- name: Login to Docker Hub
28+
uses: docker/login-action@v2
29+
with:
30+
username: ${{ secrets.DOCKERHUB_USERNAME }}
31+
password: ${{ secrets.DOCKERHUB_TOKEN }}
32+
33+
- name: Build, and Publish Polyspace Dependencies
34+
uses: ./.github/actions/build-test-and-publish-matlab-deps
35+
with:
36+
docker_build_context: './polyspace-deps/r2022b/ubuntu20.04'
37+
image_name: mathworks/polyspace-deps
38+
matlab_release_tag: 'r2022b'
39+
os_info_tag: 'ubuntu20.04'
40+
is_default_os: true
41+
should_add_latest_tag: false

.github/workflows/polyspace-deps-r2023a-ubuntu20.04.yml

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,24 @@ on:
1818
workflow_dispatch:
1919

2020
jobs:
21-
build-and-publish-image:
22-
uses: ./.github/workflows/build-test-and-publish-dependencies-image.yml
23-
secrets: inherit
24-
with:
25-
docker_build_context: './polyspace-deps/r2023a/ubuntu20.04'
26-
base_image_name: mathworks/polyspace-deps
27-
matlab_release_tag: 'r2023a'
28-
os_info_tag: 'ubuntu20.04'
29-
is_default_os: true
30-
should_add_latest_tag: false
21+
build-and-publish:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Checkout repo
25+
uses: actions/checkout@v4
26+
27+
- name: Login to Docker Hub
28+
uses: docker/login-action@v2
29+
with:
30+
username: ${{ secrets.DOCKERHUB_USERNAME }}
31+
password: ${{ secrets.DOCKERHUB_TOKEN }}
32+
33+
- name: Build, and Publish Polyspace Dependencies
34+
uses: ./.github/actions/build-test-and-publish-matlab-deps
35+
with:
36+
docker_build_context: './polyspace-deps/r2023a/ubuntu20.04'
37+
image_name: mathworks/polyspace-deps
38+
matlab_release_tag: 'r2023a'
39+
os_info_tag: 'ubuntu20.04'
40+
is_default_os: true
41+
should_add_latest_tag: false

.github/workflows/polyspace-deps-r2023b-ubuntu22.04.yml

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,24 @@ on:
1818
workflow_dispatch:
1919

2020
jobs:
21-
build-and-publish-image:
22-
uses: ./.github/workflows/build-test-and-publish-dependencies-image.yml
23-
secrets: inherit
24-
with:
25-
docker_build_context: './polyspace-deps/r2023b/ubuntu22.04'
26-
base_image_name: mathworks/polyspace-deps
27-
matlab_release_tag: 'r2023b'
28-
os_info_tag: 'ubuntu22.04'
29-
is_default_os: true
30-
should_add_latest_tag: true
21+
build-and-publish:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Checkout repo
25+
uses: actions/checkout@v4
26+
27+
- name: Login to Docker Hub
28+
uses: docker/login-action@v2
29+
with:
30+
username: ${{ secrets.DOCKERHUB_USERNAME }}
31+
password: ${{ secrets.DOCKERHUB_TOKEN }}
32+
33+
- name: Build, and Publish Polyspace Dependencies
34+
uses: ./.github/actions/build-test-and-publish-matlab-deps
35+
with:
36+
docker_build_context: './polyspace-deps/r2023b/ubuntu22.04'
37+
image_name: mathworks/polyspace-deps
38+
matlab_release_tag: 'r2023b'
39+
os_info_tag: 'ubuntu22.04'
40+
is_default_os: true
41+
should_add_latest_tag: true

tests/matlab-deps/test_awsbatch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"r2023b": "ubuntu22.04",
2424
"r2024a": "ubuntu22.04",
2525
"r2024b": "ubuntu22.04",
26-
"r2025a": "ubuntu24.04",
26+
"r2025a": "ubuntu22.04",
2727
}
2828

2929

0 commit comments

Comments
 (0)