Add instalation of dependencies to Linux release action #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |