forked from RetroTournaments/Graphite
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
AviiNL
committed
Sep 10, 2023
1 parent
bdfe25b
commit 2c430c0
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: linux_x64 | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
|
||
steps: | ||
- name: Checkout Actions Repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update && \ | ||
sudo apt install build-essential cmake git ninja-build \ | ||
libavcodec-dev libavformat-dev libswscale-dev libv4l-dev \ | ||
mesa-common-dev xorg-dev libopencv-dev | ||
- name: Prepare build directory | ||
run: | | ||
mkdir ${GITHUB_WORKSPACE}/build && \ | ||
cd ${GITHUB_WORKSPACE}/build && \ | ||
cmake -G Ninja .. | ||
- name: build | ||
run: | | ||
cd ${GITHUB_WORKSPACE}/build && \ | ||
ninja | ||
- name: tar gz the graphite binary | ||
if: success() | ||
run: | | ||
cd ${GITHUB_WORKSPACE}/build/graphite && \ | ||
tar -czvf ${GITHUB_WORKSPACE}/graphite-linux-x86_64.tar.gz graphite | ||
- name: Upload artifacts | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
commit: main | ||
tag: ${{ github.run_number }} | ||
artifacts: "graphite-linux-x86_64.tar.gz" |