From 8fd0809be9487b946c46b93b54c9458d9e6e3540 Mon Sep 17 00:00:00 2001 From: Ryan Date: Mon, 2 Sep 2024 02:31:47 +0200 Subject: [PATCH] Fetch repository content using bpkg --- .gitea/workflows/on-push.yaml | 19 +++++++++++-------- repositories.manifest | 4 ++++ 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/on-push.yaml b/.gitea/workflows/on-push.yaml index a438926..43db7cd 100644 --- a/.gitea/workflows/on-push.yaml +++ b/.gitea/workflows/on-push.yaml @@ -8,11 +8,14 @@ jobs: volumes: - /build steps: - - name: Check out repository code - uses: actions/checkout@v4 - - name: Initialize - run: bdep init -C /build cc config.cxx=g++ config.cc.coptions="-Wall -Werror" - - name: Build - run: b - - name: Test - run: b test + - 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 diff --git a/repositories.manifest b/repositories.manifest index 0fa4cd1..b49ab26 100644 --- a/repositories.manifest +++ b/repositories.manifest @@ -5,3 +5,7 @@ summary: libarc-uri project repository role: prerequisite location: https://pkg.cppget.org/1/beta trust: 70:64:FE:E4:E0:F3:60:F1:B4:51:E1:FA:12:5C:E0:B3:DB:DF:96:33:39:B9:2E:E5:C2:68:63:4C:A6:47:39:43 + +: +role: prerequisite +location: ../copy.git##HEAD