libarc-uri/.gitea/workflows/on-push.yaml
RYAN 92cae4a5df
All checks were successful
on-push / build-and-test (push) Successful in 16s
Fetch repository content using bpkg
2024-09-02 09:59:31 +02:00

22 lines
707 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: Login (.netrc)
run: |
echo machine code.helloryan.se >> ~/.netrc
echo login $GITHUB_ACTOR >> ~/.netrc
echo password ${{ secrets.GITEA_TOKEN}} >> ~/.netrc
- name: Initialize (bpkg)
run: bpkg create -d /build cc config.cxx=g++ config.cc.coptions="-Wall -Werror"
- name: Build (bpkg)
run: cd /build && bpkg build --yes $GITHUB_SERVER_URL/$GITHUB_REPOSITORY.git##$GITHUB_SHA
- name: Test (bpkg)
run: cd /build && bpkg test libarc-uri