From 1260d86f420393755a3524a6cbfb2a47e39e329e Mon Sep 17 00:00:00 2001 From: Blitblank Date: Sun, 22 Feb 2026 11:52:56 -0600 Subject: [PATCH] single-line run commands ware better than the multi-line ones --- .gitea/workflows/demo.yaml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/demo.yaml b/.gitea/workflows/demo.yaml index 05863e7..36bbd59 100644 --- a/.gitea/workflows/demo.yaml +++ b/.gitea/workflows/demo.yaml @@ -12,11 +12,14 @@ jobs: - name: clone uses: actions/checkout@v3 - - name: build + - name: container-setup run: | - echo "building..." echo "10.145.164.106 git.vxbard.net" >> /etc/hosts - g++ -o app main.cpp + + - name: build + run: echo "building..." + run: echo "10.145.164.106 git.vxbard.net" >> /etc/hosts + run: g++ -o app main.cpp - name: upload uses: actions/upload-artifact@v3 @@ -30,7 +33,7 @@ jobs: image: git.vxbard.net/homeburger/bard-cpp-builder:1.0 needs: build steps: - - name: dummy + - name: container-setup run: | echo "10.145.164.106 git.vxbard.net" >> /etc/hosts @@ -40,6 +43,5 @@ jobs: name: build-artifact - name: execute - run: | - chmod +x app - ./app + run: chmod +x app + run: ./app