From a3346d334740b3ce07976ad6267effbb5fa88748 Mon Sep 17 00:00:00 2001 From: Paulo Meira <10246101+PMeira@users.noreply.github.com> Date: Wed, 10 Jan 2024 15:29:17 -0300 Subject: [PATCH] Increment version, add tentative ARM packs for macOS --- .github/workflows/builds.yml | 47 +++++++++++++++++++++++++++++++++--- 1 file changed, 43 insertions(+), 4 deletions(-) diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml index ea00906..2da23b2 100644 --- a/.github/workflows/builds.yml +++ b/.github/workflows/builds.yml @@ -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: @@ -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 @@ -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 @@ -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 @@ -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' +