Skip to content

Update .clang-format configuration #32

Update .clang-format configuration

Update .clang-format configuration #32

name: Release packages
on:
release:
types: [published]
workflow_dispatch:
jobs:
# Matrix job - Create packages and attach them to latest release assets.
make-package:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
build: [PC, ARM]
exclude:
-os: windows-latest

Check failure on line 17 in .github/workflows/release_packages.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/release_packages.yml

Invalid workflow file

You have an error in your yaml syntax on line 17
build: ARM
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: install dependencies (Linux)
if: ${{matrix.os == 'ubuntu-latest' && matrix.build == 'PC'}}
run: |
sudo apt-get update -qq && sudo apt-get -y install \
cmake
- name: Install dependencies (ARM)
if: ${{matrix.os == 'ubuntu-latest' && matrix.build == 'ARM'}}
run: |
sudo apt-get update -qq && sudo apt-get -y install \
cmake gcc-arm-linux-gnueabi gcc-aarch64-linux-gnu binutils-aarch64-linux-gnu
- name: Build Linux versions of xevd, generate packages and md5
if: ${{matrix.os == 'ubuntu-latest' && matrix.build == 'PC'}}
run: |
mkdir build
cd build
cmake .. -DBUILD_TYPE=Release
make
make package
- name: Build Windows versions of xevd, generate packages and md5
if: ${{matrix.os == 'windows-latest' && matrix.build == 'PC'}}
run: |
mkdir build
cd build
cmake .. -G "MinGW Makefiles" -DBUILD_TYPE=Release
make
make package
- name: Build ARM versions of xevd, generate packages and md5
if: ${{matrix.os == 'ubuntu-latest' && matrix.build == 'ARM'}}
run: |
mkdir build
cd build
cmake .. -DBUILD_TYPE=Release -DCMAKE_C_COMPILER=aarch64-linux-gnu-gcc -DCMAKE_SYSTEM_PROCESSOR=aarch64 -DARM=TRUE
make
make package
- name: 'Upload Linux artifacts'
if: ${{matrix.os == 'ubuntu-latest' && matrix.build == 'PC'}}
uses: actions/upload-artifact@v4
with:
name: xevd-linux-packages-${{ github.event.release.tag_name }}
path: |
${{ github.workspace }}/build/*.deb
${{ github.workspace }}/build/*.md5
retention-days: 7
- name: 'Upload Windows artifacts'
if: ${{matrix.os == 'windows-latest' && matrix.build == 'PC'}}
uses: actions/upload-artifact@v4
with:
name: xevd-windows-packages-${{ github.event.release.tag_name }}
path: |
${{ github.workspace }}/build/*.exe
${{ github.workspace }}/build/*.md5
retention-days: 7
- name: 'Upload ARM artifacts'
if: ${{matrix.os == 'ubuntu-latest' && matrix.build == 'ARM'}}
uses: actions/upload-artifact@v4
with:
name: xevd-arm-packages-${{github.event.release.tag_name}}
path: |
${{ github.workspace }}/build/*.deb
${{ github.workspace }}/build/*.md5
retention-days: 7
- name: Upload assets to GitHub Release
uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: "build/*.deb; build/*.exe; build/*.md5"
update_latest_release: true
draft: false
overwrite: true