-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (37 loc) · 1.45 KB
/
releasesUbuntu.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 (Ubuntu)
on:
release:
types: [created]
env:
GITHUB_TOKEN: ${{ github.token }}
jobs:
windows:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04]
buildtype: [Release,Debug]
include:
- system_build: OFF
steps:
- uses: actions/checkout@v2
- name: Get release
id: get_release
uses: bruceadams/[email protected]
- name: Install libraries
run: |
sudo apt-get update --fix-missing
sudo apt-get install libuuid1 uuid-dev libssh2-1 libssh2-1-dev libidn2-0 libidn2-dev libidn11 libidn11-dev gtk2.0 libb64-dev
- name: Configure and build
run: |
cmake -B _build -S . -DBUILD_not_system=ON -DBUILD_system=${{ matrix.system_build }} -DCMAKE_BUILD_TYPE=${{ matrix.buildtype }} -DDEPS_INSTALL_DIR=rte-antares-deps-${{ matrix.buildtype }}
- name: Create archive
run: |
tar cvfhz rte-antares-deps-${{ matrix.os }}-${{ matrix.buildtype }}.tar.gz rte-antares-deps-${{ matrix.buildtype }}
- name: Upload .deb
uses: actions/[email protected]
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: rte-antares-deps-${{ matrix.os }}-${{ matrix.buildtype }}.tar.gz
asset_name: rte-antares-deps-${{ matrix.os }}-${{ matrix.buildtype }}.tar.gz
asset_content_type: application/gzip