From 3cfc25b290e4079dfc5d688e6ec9bee13737139c Mon Sep 17 00:00:00 2001 From: Lleyton Gray Date: Mon, 22 Jul 2024 21:53:07 -0700 Subject: [PATCH] ci: clone main from mock-configs --- .github/workflows/autobuild.yml | 15 +++++++++++++-- .github/workflows/build.yml | 18 +++++++++++------- .github/workflows/json-build.yml | 18 +++++++++++------- 3 files changed, 35 insertions(+), 16 deletions(-) diff --git a/.github/workflows/autobuild.yml b/.github/workflows/autobuild.yml index 6d6076eb24..f3cb7a48cf 100644 --- a/.github/workflows/autobuild.yml +++ b/.github/workflows/autobuild.yml @@ -51,16 +51,27 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 + + - name: Checkout latest Mock configs + uses: actions/checkout@v4 + with: + repository: terrapkg/mock-configs + path: mock-configs + - name: Set up git repository run: git config --global --add safe.directory "$GITHUB_WORKSPACE" + - name: Include custom build template instead of package default + run: | + cp -v mock-configs/terra.tpl /etc/mock/templates/terra.tpl + - name: Build with Andaman - run: anda build ${{ matrix.pkg.pkg }} --package rpm -c terra-${{ matrix.version }}-${{ matrix.pkg.arch }} + run: anda build ${{ matrix.pkg.pkg }} --package rpm -c mock-configs/terra-${{ matrix.version }}-${{ matrix.pkg.arch }}.cfg - name: Build with Andaman (alternate arch) if: | matrix.pkg.arch == 'x86_64' && matrix.pkg.labels['multilib'] - run: anda build ${{ matrix.pkg.pkg }} --package rpm -c terra-${{ matrix.version }}-i386 + run: anda build ${{ matrix.pkg.pkg }} --package rpm -c mock-configs/terra-${{ matrix.version }}-i386.cfg - name: Generating artifact name id: art diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 10a7de999a..0abf10b578 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -56,18 +56,22 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 + + - name: Checkout latest Mock configs + uses: actions/checkout@v4 + with: + repository: terrapkg/mock-configs + path: mock-configs + - name: Set up git repository run: git config --global --add safe.directory "$GITHUB_WORKSPACE" - - name: Cache buildroot - id: br-cache - uses: actions/cache@v4 - with: - path: /var/cache - key: ${{ runner.os }}-br-${{ matrix.version }}-${{ matrix.arch }}-${{ matrix.pkg }} + - name: Include custom build template instead of package default + run: | + cp -v mock-configs/terra.tpl /etc/mock/templates/terra.tpl - name: Build with Andaman - run: anda build anda/${{ matrix.pkg }}pkg --package rpm -c terra-${{ matrix.version }}-${{ matrix.arch }} + run: anda build anda/${{ matrix.pkg }}pkg --package rpm -c mock-configs/terra-${{ matrix.version }}-${{ matrix.arch }}.pkg - name: Generating artifact name id: art diff --git a/.github/workflows/json-build.yml b/.github/workflows/json-build.yml index 4eeed9d073..9180650a40 100644 --- a/.github/workflows/json-build.yml +++ b/.github/workflows/json-build.yml @@ -22,18 +22,22 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 + + - name: Checkout latest Mock configs + uses: actions/checkout@v4 + with: + repository: terrapkg/mock-configs + path: mock-configs + - name: Set up git repository run: git config --global --add safe.directory "$GITHUB_WORKSPACE" - - name: Cache buildroot - id: br-cache - uses: actions/cache@v4 - with: - path: /var/cache - key: ${{ runner.os }}-br-${{ matrix.version }}-${{ matrix.pkg.arch }}-${{ matrix.pkg.pkg }} + - name: Include custom build template instead of package default + run: | + cp -v mock-configs/terra.tpl /etc/mock/templates/terra.tpl - name: Build with Andaman - run: anda build ${{ matrix.pkg.pkg }} --package rpm -c terra-${{ matrix.version }}-${{ matrix.pkg.arch }} + run: anda build ${{ matrix.pkg.pkg }} --package rpm -c mock-configs/terra-${{ matrix.version }}-${{ matrix.pkg.arch }}.pkg - name: Generating artifact name id: art