Skip to content

Commit

Permalink
Merge pull request #15 from orhun/chore/add_ci
Browse files Browse the repository at this point in the history
Add automated build check
  • Loading branch information
wusyong authored Mar 15, 2024
2 parents 14aace9 + dfd993a commit d016ec4
Showing 1 changed file with 78 additions and 0 deletions.
78 changes: 78 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
name: Continuous Integration

on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: "0 0 * * 0"

jobs:
build-linux:
name: Build [linux]
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4

- name: Install Rust
uses: dsherret/rust-toolchain-file@v1

- name: Set env
run: echo "LIBCLANG_PATH=/usr/lib/llvm-14/lib" >> $GITHUB_ENV

- name: Install dependencies
run: |
sudo apt-get update
sudo apt install build-essential python3-pip ccache clang cmake curl \
g++ git gperf libdbus-1-dev libfreetype6-dev libgl1-mesa-dri \
libgles2-mesa-dev libglib2.0-dev libgstreamer-plugins-base1.0-dev \
gstreamer1.0-plugins-good libgstreamer-plugins-good1.0-dev \
gstreamer1.0-plugins-bad libgstreamer-plugins-bad1.0-dev \
gstreamer1.0-plugins-ugly gstreamer1.0-plugins-base \
libgstreamer-plugins-base1.0-dev gstreamer1.0-libav \
libgstrtspserver-1.0-dev gstreamer1.0-tools libges-1.0-dev \
libharfbuzz-dev liblzma-dev libunwind-dev libunwind-dev libvulkan1 \
libx11-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev \
libxmu-dev libxmu6 libegl1-mesa-dev llvm-dev m4 xorg-dev
- name: Build
run: cargo build

build-windows:
name: Build [windows]
runs-on: windows-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4

- name: Install Rust
uses: dsherret/rust-toolchain-file@v1

- name: Install scroop
uses: MinoruSekine/setup-scoop@v3

- name: Install dependencies
run: scoop install git python llvm cmake curl

- name: Build
run: cargo build

build-macos:
name: Build [macos]
runs-on: macos-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4

- name: Install Rust
uses: dsherret/rust-toolchain-file@v1

- name: Install dependencies
run: brew install cmake pkg-config

- name: Build
run: cargo build

0 comments on commit d016ec4

Please sign in to comment.