Skip to content
Open
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
42 changes: 42 additions & 0 deletions .github/workflows/checkCI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,12 @@ jobs:
else
cmake --build build --target install
fi
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: msl-binaries-${{ matrix.toolchain }}
path: Modelica/Resources/Library/
retention-days: 5

external_c_checks_cmake_cygwin:
name: external_c_checks_cmake_windows-cygwin
Expand Down Expand Up @@ -220,3 +226,39 @@ jobs:
echo "::add-matcher::./.github/check_deprecated_line_color.json"
python ./.CI/check_deprecated_line_color.py Complex.mo Modelica ModelicaReference ModelicaServices ModelicaTest ModelicaTestConversion4.mo ModelicaTestOverdetermined.mo
echo "::remove-matcher owner=check_deprecated_line_color::"

deploy:
name: Deploy
runs-on: ubuntu-latest
needs: external_c_checks_cmake
if: github.event_name == 'workflow_dispatch' || contains(github.ref, 'refs/tags/')
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
fetch-depth: 5
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: artifacts
- name: List downloaded artifacts
run: find artifacts -type f | head -20
- name: Bundle and prepare binaries
run: |
mkdir -p msl-binaries
cd artifacts
for dir in msl-binaries-*/; do
toolchain=${dir#msl-binaries-}
toolchain=${toolchain%/}
mkdir -p "../msl-binaries/${toolchain}"
cp -r "${dir}"* "../msl-binaries/${toolchain}/" || true
done
cd ..
tar -czf ModelicaStandardLibrary-binaries-${{ github.ref_name }}.tar.gz msl-binaries/
ls -lh ModelicaStandardLibrary-binaries-${{ github.ref_name }}.tar.gz
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: msl-binaries
path: ModelicaStandardLibrary-binaries-${{ github.ref_name }}.tar.gz
retention-days: 30