add workflows
This commit is contained in:
parent
bc0dbdf9da
commit
c1db2a135c
34
.gitea/workflows/build.yaml
Normal file
34
.gitea/workflows/build.yaml
Normal file
@ -0,0 +1,34 @@
|
||||
name: build workflows
|
||||
on: [push, workflow_dispatch]
|
||||
|
||||
jobs:
|
||||
Explore-Gitea-Actions:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: check out repository code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: install build tools
|
||||
run: |
|
||||
apt update -y
|
||||
apt install build-essential -y
|
||||
apt install ninja-build -y
|
||||
|
||||
mkdir /cmake
|
||||
wget https://github.com/Kitware/CMake/releases/download/v3.28.1/cmake-3.28.1-linux-x86_64.tar.gz -O cmake.tar.gz
|
||||
tar -xf cmake.tar.gz -C /cmake --strip-components=1
|
||||
|
||||
- name: install raylib dependency
|
||||
run: apt install -y libasound2-dev libx11-dev libxrandr-dev libxi-dev libgl1-mesa-dev libglu1-mesa-dev libxcursor-dev libxinerama-dev
|
||||
|
||||
- name: build
|
||||
run: |
|
||||
mkdir build
|
||||
cd build
|
||||
/cmake/bin/cmake .. -G Ninja
|
||||
/cmake/bin/cmake --build .
|
||||
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: "libpanda-core.a"
|
||||
path: "build/libpanda-core.a"
|
Loading…
x
Reference in New Issue
Block a user