Skip to content

Commit

Permalink
Workflow: Retour sur une compilation simple
Browse files Browse the repository at this point in the history
  • Loading branch information
Churros98 committed Dec 22, 2024
1 parent 5df127c commit 53d531a
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 61 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/build-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Build and Release Binary
on:
push:
branches: [master, build_*]
tags: [v*]
pull_request:
branches: [master]
jobs:
build:
runs-on: ${{ matrix.runs-on }}
strategy:
matrix:
include:
- arch: amd64
runs-on: ubuntu-latest
gcc_arch: gcc
- arch: arm64
runs-on: ubuntu-latest
gcc_arch: aarch64-linux-gnu-gcc
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libjpeg-dev libevent-dev libbsd-dev
if [ "${{ matrix.arch }}" = "arm64" ]; then
sudo apt-get install -y gcc-aarch64-linux-gnu
sudo apt-get install -y crossbuild-essential-arm64
fi
- name: Build binary
run: |
make CC=${{ matrix.gcc_arch }}
mv ustreamer ustreamer-${{ matrix.arch }}
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: ustreamer-${{ matrix.arch }}
path: ustreamer-${{ matrix.arch }}
release:
needs: build
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- name: Download all artifacts
uses: actions/download-artifact@v3
- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: |
ustreamer-*/ustreamer-*
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
61 changes: 0 additions & 61 deletions .github/workflows/docker-alpine-image.yaml

This file was deleted.

0 comments on commit 53d531a

Please sign in to comment.