Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BornAgain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mlz
BornAgain
Commits
b4a05bbc
Commit
b4a05bbc
authored
4 years ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
CI Win: download zip archive with less libraries
parent
d5d0bb6c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/workflows/ba-windows.yml
+24
-17
24 additions, 17 deletions
.github/workflows/ba-windows.yml
with
24 additions
and
17 deletions
.github/workflows/ba-windows.yml
+
24
−
17
View file @
b4a05bbc
...
@@ -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_20200
604
.zip -O ${{runner.temp}}\local_x64.zip
wget http://apps.jcns.fz-juelich.de/src/WinLibs/bornagain_deps_20200
703
.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()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment