From 7a92157d2c829dfb64374bdf3942a48f2288fd4d Mon Sep 17 00:00:00 2001 From: Martin Petr Date: Sat, 29 Nov 2025 21:55:50 +0100 Subject: [PATCH] Update .gitea/workflows/build-iso.yml --- .gitea/workflows/build-iso.yml | 52 +++++++++++++++------------------- 1 file changed, 23 insertions(+), 29 deletions(-) diff --git a/.gitea/workflows/build-iso.yml b/.gitea/workflows/build-iso.yml index e474b9a..833f13e 100644 --- a/.gitea/workflows/build-iso.yml +++ b/.gitea/workflows/build-iso.yml @@ -12,38 +12,32 @@ jobs: RUNNER_TOOL_CACHE: /toolcache runs-on: ubuntu-latest steps: - - name: Make a file with a lot of repeated text + - name: Checkout code + uses: actions/checkout@v4 + + - name: Install dependencies run: | - for i in {1..100000}; do echo -n 'foobar' >> foobar.txt; done - - uses: actions/upload-artifact@v3 - with: - name: my-artifact - path: foobar.txt - compression-level: 9 # maximum compression - # - name: Checkout code - # uses: actions/checkout@v4 + sudo apt update + sudo apt install -y clang lld mtools xorriso - # - name: Install dependencies - # run: | - # sudo apt update - # sudo apt install -y clang lld mtools xorriso + - name: Clone edk2 + run: | + git clone https://github.com/tianocore/edk2.git ./edk2 - # - name: Clone edk2 - # run: | - # git clone https://github.com/tianocore/edk2.git ./edk2 + - name: Make scripts executable + run: chmod +x ./scripts/build_c.sh ./scripts/out_to_iso.sh - # - name: Make scripts executable - # run: chmod +x ./scripts/build_c.sh ./scripts/out_to_iso.sh + - name: Run build_c.sh + run: ./scripts/build_c.sh - # - name: Run build_c.sh - # run: ./scripts/build_c.sh + - name: Run out_to_iso.sh + run: ./scripts/out_to_iso.sh - # - name: Run out_to_iso.sh - # run: ./scripts/out_to_iso.sh - - # - name: Upload ISO artifact - # uses: actions/upload-artifact@v2 - # with: - # include-hidden-files: true - # name: built-iso - # path: ./out/lints.iso + - name: Commit and push to Lints-release repo + run: | + git config user.name "GitHub Actions" + git config user.email "github-actions@github.com" + git remote add target_repo https://x-access-token:${{ secrets.DEPLOYMENT_TOKEN }}@git.martinpetr.dev/marti/Lints-release.git + git add out/lints.iso + git commit -m "Automated commit from build workflow" || echo "No changes to commit" + git push target_repo main