Fix added integer u32 #29
Workflow file for this run
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 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 | ||
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 |