Skip to content
Snippets Groups Projects
Commit b4a05bbc authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

CI Win: download zip archive with less libraries

parent d5d0bb6c
No related branches found
No related tags found
No related merge requests found
...@@ -25,13 +25,13 @@ env: ...@@ -25,13 +25,13 @@ env:
on: on:
push: push:
branches: [ master, develop] branches: [ master, develop]
paths-ignore: paths-ignore:
- 'Doc/**' - 'Doc/**'
pull_request: pull_request:
branches: [ master, develop ] branches: [ master, develop ]
paths-ignore: paths-ignore:
- 'Doc/**' - 'Doc/**'
jobs: jobs:
build: build:
...@@ -43,14 +43,14 @@ jobs: ...@@ -43,14 +43,14 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with: with:
submodules: true submodules: true
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1 uses: actions/setup-python@v1
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
- name: setup dependencies - name: setup dependencies
shell: powershell shell: powershell
run: | run: |
...@@ -59,19 +59,19 @@ jobs: ...@@ -59,19 +59,19 @@ jobs:
cd ${{github.workspace}} cd ${{github.workspace}}
mkdir deps mkdir deps
Get-Date -Format G Get-Date -Format G
wget http://apps.jcns.fz-juelich.de/src/WinLibs/bornagain_deps_20200604.zip -O ${{runner.temp}}\local_x64.zip wget http://apps.jcns.fz-juelich.de/src/WinLibs/bornagain_deps_20200703.zip -O ${{runner.temp}}\local_x64.zip
Get-Date -Format G Get-Date -Format G
7z x ${{runner.temp}}\local_x64.zip -odeps 7z x ${{runner.temp}}\local_x64.zip -odeps
Get-Date -Format G Get-Date -Format G
dir deps dir deps
dir deps/local_x64 dir deps/local_x64
- name: Install Python packages - name: Install Python packages
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
python -m pip install wheel setuptools python -m pip install wheel setuptools
python -m pip install numpy matplotlib python -m pip install numpy matplotlib
- name: Install Qt - name: Install Qt
uses: jurplel/install-qt-action@v2 uses: jurplel/install-qt-action@v2
with: with:
...@@ -92,7 +92,7 @@ jobs: ...@@ -92,7 +92,7 @@ jobs:
set(ccache_url "https://github.com/cristianadam/ccache/releases/download/v$ENV{CCACHE_VERSION}/${{ runner.os }}.tar.xz") set(ccache_url "https://github.com/cristianadam/ccache/releases/download/v$ENV{CCACHE_VERSION}/${{ runner.os }}.tar.xz")
file(DOWNLOAD "${ccache_url}" ./ccache.tar.xz SHOW_PROGRESS) file(DOWNLOAD "${ccache_url}" ./ccache.tar.xz SHOW_PROGRESS)
execute_process(COMMAND ${CMAKE_COMMAND} -E tar xvf ./ccache.tar.xz) execute_process(COMMAND ${CMAKE_COMMAND} -E tar xvf ./ccache.tar.xz)
set(ninja_url "https://github.com/ninja-build/ninja/releases/download/v$ENV{NINJA_VERSION}/ninja-win.zip") set(ninja_url "https://github.com/ninja-build/ninja/releases/download/v$ENV{NINJA_VERSION}/ninja-win.zip")
file(DOWNLOAD "${ninja_url}" ./ninja.zip SHOW_PROGRESS) file(DOWNLOAD "${ninja_url}" ./ninja.zip SHOW_PROGRESS)
execute_process(COMMAND ${CMAKE_COMMAND} -E tar xvf ./ninja.zip) execute_process(COMMAND ${CMAKE_COMMAND} -E tar xvf ./ninja.zip)
...@@ -111,7 +111,7 @@ jobs: ...@@ -111,7 +111,7 @@ jobs:
run: | run: |
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC) string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
message("::set-output name=timestamp::${current_date}") message("::set-output name=timestamp::${current_date}")
- name: ccache cache files for BornAgain - name: ccache cache files for BornAgain
uses: actions/cache@v1.1.0 uses: actions/cache@v1.1.0
with: with:
...@@ -119,7 +119,7 @@ jobs: ...@@ -119,7 +119,7 @@ jobs:
key: ba-windows-ccache-${{ steps.ccache_cache_timestamp.outputs.timestamp }} key: ba-windows-ccache-${{ steps.ccache_cache_timestamp.outputs.timestamp }}
restore-keys: | restore-keys: |
ba-windows-ccache- ba-windows-ccache-
- name: Build BornAgain - name: Build BornAgain
shell: cmd shell: cmd
env: env:
...@@ -141,7 +141,7 @@ jobs: ...@@ -141,7 +141,7 @@ jobs:
ccache -z ccache -z
ccache -p ccache -p
cmake --build . --config Release -j4 cmake --build . --config Release -j4
- name: Testing - name: Testing
shell: cmd shell: cmd
run: | run: |
...@@ -159,7 +159,7 @@ jobs: ...@@ -159,7 +159,7 @@ jobs:
if: failure() if: failure()
with: with:
name: LastTest.log name: LastTest.log
path: ./build/Testing/Temporary/LastTest.log path: ./build/Testing/Temporary/LastTest.log
- name: Build package - name: Build package
if: success() if: success()
...@@ -169,6 +169,13 @@ jobs: ...@@ -169,6 +169,13 @@ jobs:
set PATH=${{github.workspace}}\nsis-3.04;%PATH% set PATH=${{github.workspace}}\nsis-3.04;%PATH%
cpack -c Release cpack -c Release
- name: Upload CPack log
uses: actions/upload-artifact@v2
if: failure()
with:
name: CPack.log
path: ./build/_CPack_Packages/win64/NSIS/NSISOutput.log
- name: Upload package - name: Upload package
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
if: success() if: success()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment