libarc-uri/.gitea/workflows/on-push.yaml

22 lines
707 B
YAML
Raw Normal View History

2024-09-01 22:12:44 +00:00
name: on-push
on: [push]
jobs:
build-and-test:
runs-on: linux
container: code.helloryan.se/infra/buildenv/cxx-amd64-fedora-40:latest
2024-09-01 22:50:06 +00:00
volumes:
- /build
2024-09-01 22:12:44 +00:00
steps:
2024-09-02 00:31:47 +00:00
- 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