Skip to content

Commit

Permalink
Increment version, add tentative ARM packs for macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
PMeira committed Jan 10, 2024
1 parent ea1cc9b commit a3346d3
Showing 1 changed file with 43 additions and 4 deletions.
47 changes: 43 additions & 4 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

env:
DSS_CAPI_VERSION: '0.13.4'
DSS_MATLAB_VERSION: '0.13.4'
DSS_MATLAB_VERSION: '0.13.4-2'

jobs:
linux_x64:
Expand All @@ -22,7 +22,7 @@ jobs:
run: |
git clone $GITHUB_SERVER_URL/$GITHUB_REPOSITORY dss_matlab
cd dss_matlab
git checkout $GITHUB_SHA
git checkout $GITHUB_SHA
- name: Package
run: |
cd dss_matlab
Expand Down Expand Up @@ -64,7 +64,7 @@ jobs:
run: |
git clone $GITHUB_SERVER_URL/$GITHUB_REPOSITORY dss_matlab
cd dss_matlab
git checkout $GITHUB_SHA
git checkout $GITHUB_SHA
- name: Package
run: |
cd dss_matlab
Expand Down Expand Up @@ -102,7 +102,7 @@ jobs:
run: |
git clone $GITHUB_SERVER_URL/$GITHUB_REPOSITORY dss_matlab
cd dss_matlab
git checkout $GITHUB_SHA
git checkout $GITHUB_SHA
- name: Package
run: |
cd dss_matlab
Expand Down Expand Up @@ -132,3 +132,42 @@ jobs:
name: 'packages'
path: '${{ github.workspace }}/dss_matlab/release'

darwin_arm64:
runs-on: 'macos-12'
env:
TRAVIS_JOB_NAME: "darwin_arm64"
steps:
- name: 'Checkout'
run: |
git clone $GITHUB_SERVER_URL/$GITHUB_REPOSITORY dss_matlab
cd dss_matlab
git checkout $GITHUB_SHA
- name: Package
run: |
cd dss_matlab
wget "https://github.com/dss-extensions/dss_capi/releases/download/${DSS_CAPI_VERSION}/dss_capi_${DSS_CAPI_VERSION}_${TRAVIS_JOB_NAME}.tar.gz" -Odss_capi.tar.gz -q
tar zxf dss_capi.tar.gz
wget "https://github.com/dss-extensions/dss_capi/releases/download/${DSS_CAPI_VERSION}/messages.tar.gz" -Omessages.tar.gz -q
tar zxf messages.tar.gz
mkdir -p release/dss_matlab
cp -R "+DSS_MATLAB" "release/dss_matlab/+DSS_MATLAB"
mv messages "release/dss_matlab/+DSS_MATLAB/"
mv dss_capi/lib/${TRAVIS_JOB_NAME}/libdss_capi.dylib "release/dss_matlab/+DSS_MATLAB/dss_capi.dylib"
mv dss_capi/lib/${TRAVIS_JOB_NAME}/libdss_capid.dylib "release/dss_matlab/+DSS_MATLAB/dss_capid.dylib"
mv dss_capi/lib/${TRAVIS_JOB_NAME}/libklusolvex.dylib "release/dss_matlab/+DSS_MATLAB/"
mv dss_capi/LICENSE "release/dss_matlab/DSS_C-API_LICENSE"
mv dss_capi/*LICENSE "release/dss_matlab/"
mv LICENSE release/dss_matlab/
mv README.md release/dss_matlab/
mv examples release/dss_matlab/
cd release
tar zcf dss_matlab_v${DSS_MATLAB_VERSION}_macos_arm64.tar.gz dss_matlab
rm -rf dss_matlab
ls -l
cd ..
- name: 'Upload artifacts'
uses: "actions/upload-artifact@v3"
with:
name: 'packages'
path: '${{ github.workspace }}/dss_matlab/release'

0 comments on commit a3346d3

Please sign in to comment.