Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 8 additions & 10 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
name: Integration Tests
# Manual trigger only. The MATLAB-in-Docker integration flow depends on external
# images (raphaelguzman/matlab:*-MIN), an org-level MATLAB license, and a matrix
# pinned to R2018b/R2019a + MySQL 5.6/5.7/8.0.18 — none of which cover the
# platforms users care about today (Apple Silicon, MySQL 8.4 LTS). Re-enable
# only after the test stack is modernised.
on:
push:
branches:
- '**' # every branch
- '!stage*' # exclude branches beginning with stage
pull_request:
branches:
- '**' # every branch
- '!stage*' # exclude branches beginning with stage
workflow_dispatch:
jobs:
CI:
if: github.event_name == 'push' || github.event_name == 'pull_request'
Expand All @@ -22,7 +20,7 @@ jobs:
# - matlab_version: "R2016b"
# mysql_version: "5.7"
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Run primary tests
env:
MATLAB_UID: "1001"
Expand All @@ -35,4 +33,4 @@ jobs:
DOCKER_CLIENT_TIMEOUT: "120"
COMPOSE_HTTP_TIMEOUT: "120"
run: |
docker-compose -f LNX-docker-compose.yml up --build --exit-code-from app
docker compose -f LNX-docker-compose.yml up --build --exit-code-from app
36 changes: 36 additions & 0 deletions .github/workflows/smoke.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Smoke Check
on:
push:
branches: ['**']
pull_request:
branches: ['**']
jobs:
artifacts:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Verify mex binaries are present for all four architectures
run: |
set -e
for arch in mexa64 mexw64 mexmaci64 mexmaca64; do
bin="distribution/$arch/mym.$arch"
if [ ! -s "$bin" ]; then
echo "Missing or empty: $bin"
exit 1
fi
echo "OK: $bin ($(stat -c%s "$bin") bytes)"
done
- name: Verify version constants parse in src/mym.h
run: |
set -e
major=$(grep -E '^#define\s+MYM_VERSION_MAJOR\s+[0-9]+' src/mym.h | awk '{print $3}')
minor=$(grep -E '^#define\s+MYM_VERSION_MINOR\s+[0-9]+' src/mym.h | awk '{print $3}')
bugfix=$(grep -E '^#define\s+MYM_VERSION_BUGFIX\s+[0-9]+' src/mym.h | awk '{print $3}')
if [ -z "$major" ] || [ -z "$minor" ] || [ -z "$bugfix" ]; then
echo "Version constants missing or unparseable in src/mym.h"
exit 1
fi
echo "Embedded version: $major.$minor.$bugfix"
- name: Verify packaging entrypoint is present
run: |
test -s mktbx.m && echo "OK: mktbx.m"
4 changes: 2 additions & 2 deletions src/mym.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@

// mym version information
#define MYM_VERSION_MAJOR 2
#define MYM_VERSION_MINOR 8
#define MYM_VERSION_BUGFIX 5
#define MYM_VERSION_MINOR 9
#define MYM_VERSION_BUGFIX 0


// some local defintion
Expand Down
Loading