Skip to content

Commit

Permalink
[CI] upload msys2 installer as artefact (#3440)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarod42 authored Aug 2, 2024
1 parent 43fbfb3 commit a57320d
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/msys2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,19 +67,28 @@ jobs:
with:
submodules: recursive

- name: build, test and install Codelite
- name: build and create Codelite installer
shell: msys2 {0}
run: |
mkdir build-release
cd build-release
MSYS2_BASE=/d/a/_temp/msys64 PATH="$HOME/root/bin:$PATH" cmake .. -G"MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release -DWXWIN="$HOME/root" -Wno-dev -DBUILD_TESTING=1
MSYS2_BASE=/d/a/_temp/msys64 PATH="$HOME/root/bin:$PATH" cmake .. -G"MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release -DWXWIN="$HOME/root" -Wno-dev -DBUILD_TESTING=0
PATH="$HOME/root/bin:$PATH" mingw32-make -j$(nproc) install
PATH="$HOME/root/bin:$PATH" mingw32-make -j$(nproc) setup
# ctest --output-on-failure # Missing dll near test executables

# Upload artefact
# Upload and test installer
- name: artifact
uses: actions/upload-artifact@v4
with:
name: codelite
name: codelite-installer
path: |
build-release/install/**.*
build-release/installer/**.*
- name: Run installer
shell: powershell
run: Start-Process -wait -FilePath .\build-release\installer\codelite-amd64-*.exe -ArgumentList "/SILENT /SP- /SUPPRESSMSGBOXES /NOICONS /NORESTART"

- name: Show content of installation
shell: bash
run: ls -lR "/C/Program Files/Codelite"

0 comments on commit a57320d

Please sign in to comment.