Skip to content

Add instalation of dependencies to Linux release action #4

Add instalation of dependencies to Linux release action

Add instalation of dependencies to Linux release action #4

Workflow file for this run

name: Release
on:
push:
branches:
- feature/github-actions-build
# tags:
# - '*'
permissions:
contents: write
jobs:
release:
name: Release
strategy:
matrix:
# kind: ['Linux', 'Windows', 'MacOS']
kind: ['Linux', 'Windows']
include:
- kind: 'Linux'
os: ubuntu-latest
- kind: 'Windows'
os: windows-latest
# - kind: 'MacOS'
# os: macos-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Linux dependencies
if: matrix.kind == 'Linux'
run: |
sudo apt-get install -y build-essential g++-12 libgl-dev libopengl0 libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev
- name: Build and create archive
shell: bash
run: |
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release
Scripts/CreateBundle.sh --postfix ${{ matrix.kind }} Release
- name: Publish
uses: softprops/action-gh-release@v1
with:
draft: true
files: "I3T*.zip"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}