Skip to content

Commit

Permalink
Merge pull request #42 from european-browser/mqt
Browse files Browse the repository at this point in the history
[TEST] build: add pr status check-point
  • Loading branch information
pewsheen authored May 6, 2024
2 parents e92a8ea + 0c43b23 commit 02cdbd8
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 244 deletions.
55 changes: 52 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name: Continuous Integration

on:
merge_group:
pull_request:
branches:
- main
schedule:
- cron: '0 0 * * *'
- mq-test
# schedule:
# - cron: '0 0 * * *'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -15,7 +16,40 @@ env:
CN_APP_SLUG: verso-nightly

jobs:
pr-fast-check:
if: ${{ github.event_name == 'pull_request' }}
name: Pull Request Fast Check
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 sway
- name: Check
run: cargo check

build-linux:
if: ${{ github.event_name != 'pull_request' }}
name: Build [Linux]
runs-on: ubuntu-latest
env:
Expand Down Expand Up @@ -77,6 +111,7 @@ jobs:
path: verso-x86_64-unknown-linux-gnu.tar.gz

build-windows:
if: ${{ github.event_name != 'pull_request' }}
name: Build [Windows]
runs-on: windows-latest
env:
Expand Down Expand Up @@ -115,6 +150,7 @@ jobs:
path: verso-x86_64-pc-windows-msvc.tar.gz

build-macos:
if: ${{ github.event_name != 'pull_request' }}
name: Build [macOS]
strategy:
fail-fast: false
Expand Down Expand Up @@ -156,6 +192,19 @@ jobs:
name: verso-${{ matrix.platform.target }}
path: verso-${{ matrix.platform.target }}.tar.gz

build-result:
name: Build Result
runs-on: ubuntu-latest
if: always()
needs: ['build-macos', 'build-windows', 'build-linux']
steps:
- name: Success
if: ${{ !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') }}
run: exit 0
- name: Failure
if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
run: exit 1

release-nightly:
if: ${{ github.event_name == 'schedule' }}
runs-on: ubuntu-latest
Expand Down
203 changes: 0 additions & 203 deletions .github/workflows/merge-queue.yml

This file was deleted.

38 changes: 0 additions & 38 deletions .github/workflows/pull-request.yml

This file was deleted.

0 comments on commit 02cdbd8

Please sign in to comment.