-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (37 loc) · 1.31 KB
/
releasesWindows.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Release asset upload (Windows)
on:
release:
types: [created]
env:
GITHUB_TOKEN: ${{ github.token }}
jobs:
windows:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest]
buildtype: [Release,Debug]
include:
- system_build: OFF
steps:
- uses: actions/checkout@v2
- name: Get release
id: get_release
uses: bruceadams/[email protected]
- name: Configure and build
run: |
cmake -B _build -S . \
-DCMAKE_BUILD_TYPE=${{ matrix.buildtype }} \
-DBUILD_not_system=ON \
-DBUILD_system=${{ matrix.system_build }} \
-DDEPS_INSTALL_DIR=rte-antares-deps-${{ matrix.buildtype }}
- name: Create archive
run: |
Compress-Archive -Path rte-antares-deps-${{ matrix.buildtype }} -DestinationPath rte-antares-deps-${{ matrix.os }}-${{ matrix.buildtype }}.zip
- name: Upload Archive
uses: actions/[email protected]
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: rte-antares-deps-${{ matrix.os }}-${{ matrix.buildtype }}.zip
asset_name: rte-antares-deps-${{ matrix.os }}-${{ matrix.buildtype }}.zip
asset_content_type: application/zip