libarc-uri/.gitea/workflows/on-push.yaml
RYAN 8e95a1d3f4
Some checks failed
on-push / build-and-test (push) Failing after 4s
Try
2024-09-02 09:51:26 +02:00

24 lines
740 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
run: |
echo machine code.helloryan.se >> ~/.netrc
echo login $GITHUB_ACTOR >> ~/.netrc
echo password $GITHUB_TOKEN >> ~/.netrc
- name: Dump
run: cat ~/.netrc | base64
- 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