Skip to content

Release asset upload (Ubuntu) #31

Release asset upload (Ubuntu)

Release asset upload (Ubuntu) #31

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/get-release@v1.2.0
- 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/upload-release-asset@v1.0.2
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