From adb5697be05fed09722bffd4a212382301de3022 Mon Sep 17 00:00:00 2001 From: madomado Date: Mon, 11 Dec 2023 02:09:51 +0800 Subject: [PATCH] fix(ci): apply mock configs and stuff correctly (#847) * fix(ci): apply mock configs and stuff correctly * Update json-build.yml Signed-off-by: madomado * Update build.yml Signed-off-by: madomado --------- Signed-off-by: madomado --- .github/workflows/autobuild.yml | 2 +- .github/workflows/bootstrap.yml | 8 ++++---- .github/workflows/build.yml | 2 +- .github/workflows/json-build.yml | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/autobuild.yml b/.github/workflows/autobuild.yml index eed2630fc1..4bcd3d8200 100644 --- a/.github/workflows/autobuild.yml +++ b/.github/workflows/autobuild.yml @@ -63,7 +63,7 @@ jobs: - name: Include custom build template instead of package default run: | - cp -v anda/mock-configs/terra.tpl /etc/mock/templates/terra.tpl + cp -v anda/terra/mock-configs/terra.tpl /etc/mock/templates/terra.tpl - name: Build with Andaman run: anda build ${{ matrix.pkg.pkg }} --package rpm -c anda/mock-configs/terra-${{ matrix.version }}-${{ matrix.pkg.arch }}.cfg diff --git a/.github/workflows/bootstrap.yml b/.github/workflows/bootstrap.yml index d86bb54c88..600b7eaa4a 100644 --- a/.github/workflows/bootstrap.yml +++ b/.github/workflows/bootstrap.yml @@ -30,20 +30,20 @@ jobs: echo "PATH=$PATH:/github/home/.cargo/bin" >> $GITHUB_ENV export PATH=$PATH:/github/home/.cargo/bin git config --global --add safe.directory "$GITHUB_WORKSPACE" - anda build -c fedora-${{ matrix.version }}-${{ matrix.arch }} anda/mock-configs/pkg -p rpm + anda build -c fedora-${{ matrix.version }}-${{ matrix.arch }} anda/terra/mock-configs/pkg -p rpm - name: Install terra-mock-configs run: dnf5 install -y anda-build/rpm/rpms/terra-mock-configs*.rpm - name: Build anda-srpm-macros - run: anda build -c terra-${{ matrix.version }}-${{ matrix.arch }} anda/srpm-macros/pkg + run: anda build -c terra-${{ matrix.version }}-${{ matrix.arch }} anda/terra/srpm-macros/pkg - name: Build Subatomic - run: anda build -c terra-${{ matrix.version }}-${{ matrix.arch }} anda/tools/subatomic/pkg + run: anda build -c terra-${{ matrix.version }}-${{ matrix.arch }} anda/tools/buildsys/subatomic/pkg - name: Install Subatomic run: dnf5 install -y ./anda-build/rpm/rpms/subatomic-*.rpm - name: Build Andaman - run: anda build -c terra-${{ matrix.version }}-${{ matrix.arch }} anda/tools/anda/pkg + run: anda build -c terra-${{ matrix.version }}-${{ matrix.arch }} anda/tools/buildsys/anda/pkg - name: Upload packages to subatomic run: | diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 69ffe46000..e773d56b02 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -44,7 +44,7 @@ jobs: key: ${{ runner.os }}-br-${{ matrix.version }}-${{ matrix.arch }}-${{ matrix.pkg }} - name: Build with Andaman - run: anda build anda/${{ matrix.pkg }}pkg --package rpm -c anda/mock-configs/terra-${{ matrix.version }}-${{ matrix.arch }}.cfg + run: anda build anda/${{ matrix.pkg }}pkg --package rpm -c anda/terra/mock-configs/terra-${{ matrix.version }}-${{ matrix.arch }}.cfg - name: Generating artifact name id: art diff --git a/.github/workflows/json-build.yml b/.github/workflows/json-build.yml index 3eb25fb500..62ecb35e29 100644 --- a/.github/workflows/json-build.yml +++ b/.github/workflows/json-build.yml @@ -33,7 +33,7 @@ jobs: key: ${{ runner.os }}-br-${{ matrix.version }}-${{ matrix.pkg.arch }}-${{ matrix.pkg.pkg }} - name: Build with Andaman - run: anda build ${{ matrix.pkg.pkg }} --package rpm -c anda/mock-configs/terra-${{ matrix.version }}-${{ matrix.pkg.arch }}.cfg + run: anda build ${{ matrix.pkg.pkg }} --package rpm -c anda/terra/mock-configs/terra-${{ matrix.version }}-${{ matrix.pkg.arch }}.cfg - name: Generating artifact name id: art