47 lines
1.0 KiB
YAML
47 lines
1.0 KiB
YAML
name: build-linux-glfw-x64
|
|
on:
|
|
# ON tag
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Install Dependencies
|
|
run: |
|
|
mkdir release
|
|
sudo apt-get update
|
|
sudo apt-get install -y \
|
|
build-essential \
|
|
cmake \
|
|
xorg-dev \
|
|
libglu1-mesa-dev \
|
|
libglfw3-dev \
|
|
libx11-dev \
|
|
libxkbcommon-dev \
|
|
python3-pil
|
|
|
|
|
|
- name: Build Linux GLFW x64
|
|
run: |
|
|
if [ -d "build" ]; then
|
|
rm -rf build
|
|
fi
|
|
mkdir build
|
|
mkdir release/linux-glfw-x64
|
|
cd build
|
|
cmake ..
|
|
make
|
|
cd ..
|
|
cp build/src/Dawn release/linux-glfw-x64/Dawn
|
|
cp build/dawn.tar release/linux-glfw-x64/dawn.tar
|
|
|
|
# - name: Release
|
|
# uses: akkuman/gitea-release-action@v1
|
|
# with:
|
|
# files: |-
|
|
# release/ |