You've already forked bitshift-validate
71 lines
1.8 KiB
YAML
71 lines
1.8 KiB
YAML
name: on-push
|
|
|
|
on:
|
|
push:
|
|
tags-ignore:
|
|
- '**'
|
|
branches:
|
|
- '**'
|
|
|
|
jobs:
|
|
gcc:
|
|
runs-on: linux
|
|
container: code.helloryan.se/infra/buildenv/f44-x86_64-unified:latest
|
|
steps:
|
|
- name: Prepare environment
|
|
run: |
|
|
mkdir /src
|
|
- name: Configure repository access
|
|
run: |
|
|
git config --global http.$GITHUB_SERVER_URL/.extraheader "Authorization: token ${{ secrets.PACKAGE_PULL_TOKEN }}"
|
|
- name: Fetch repository
|
|
run: |
|
|
cd /src
|
|
git clone $GITHUB_SERVER_URL/$GITHUB_REPOSITORY.git .
|
|
git checkout "$GITHUB_SHA"
|
|
- name: Create build configuration
|
|
run: |
|
|
bpkg create -d /build cc config.cxx=g++ config.cc.coptions="-Wall -Werror"
|
|
- name: Initialize
|
|
run: |
|
|
cd /src
|
|
bdep init -A /build
|
|
- name: Build
|
|
run: |
|
|
cd /src
|
|
b
|
|
- name: Test
|
|
run: |
|
|
cd /src
|
|
b -j 1 -s test
|
|
clang:
|
|
runs-on: linux
|
|
container: code.helloryan.se/infra/buildenv/f44-x86_64-unified:latest
|
|
steps:
|
|
- name: Prepare environment
|
|
run: |
|
|
mkdir /src
|
|
- name: Configure repository access
|
|
run: |
|
|
git config --global http.$GITHUB_SERVER_URL/.extraheader "Authorization: token ${{ secrets.PACKAGE_PULL_TOKEN }}"
|
|
- name: Fetch repository
|
|
run: |
|
|
cd /src
|
|
git clone $GITHUB_SERVER_URL/$GITHUB_REPOSITORY.git .
|
|
git checkout "$GITHUB_SHA"
|
|
- name: Create build configuration
|
|
run: |
|
|
bpkg create -d /build cc config.cxx=clang++ config.cc.coptions="-Wall -Werror"
|
|
- name: Initialize
|
|
run: |
|
|
cd /src
|
|
bdep init -A /build
|
|
- name: Build
|
|
run: |
|
|
cd /src
|
|
b
|
|
- name: Test
|
|
run: |
|
|
cd /src
|
|
b -j 1 -s test
|