25 lines
625 B
YAML
25 lines
625 B
YAML
|
name: on-push
|
||
|
on: [push]
|
||
|
|
||
|
jobs:
|
||
|
build-and-test:
|
||
|
runs-on: linux
|
||
|
container: code.helloryan.se/infra/buildenv/cxx-amd64-fedora-40:latest
|
||
|
volumes:
|
||
|
- /build
|
||
|
steps:
|
||
|
- name: Clone repository
|
||
|
uses: actions/checkout@v3
|
||
|
- name: Authenticate
|
||
|
run: |
|
||
|
git config unset http.https://code.helloryan.se/.extraheader
|
||
|
echo "${{ secrets.NETRC }}" >> ~/.netrc
|
||
|
- name: Initialize
|
||
|
run: |
|
||
|
bpkg create -d /build cc config.cc.coptions="-Wall -Werror"
|
||
|
bdep init -A /build
|
||
|
- name: Build
|
||
|
run: b
|
||
|
- name: Test
|
||
|
run: b test
|