single-line run commands ware better than the multi-line ones
This commit is contained in:
@@ -12,11 +12,14 @@ jobs:
|
|||||||
- name: clone
|
- name: clone
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: build
|
- name: container-setup
|
||||||
run: |
|
run: |
|
||||||
echo "building..."
|
|
||||||
echo "10.145.164.106 git.vxbard.net" >> /etc/hosts
|
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
|
- name: upload
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
@@ -30,7 +33,7 @@ jobs:
|
|||||||
image: git.vxbard.net/homeburger/bard-cpp-builder:1.0
|
image: git.vxbard.net/homeburger/bard-cpp-builder:1.0
|
||||||
needs: build
|
needs: build
|
||||||
steps:
|
steps:
|
||||||
- name: dummy
|
- name: container-setup
|
||||||
run: |
|
run: |
|
||||||
echo "10.145.164.106 git.vxbard.net" >> /etc/hosts
|
echo "10.145.164.106 git.vxbard.net" >> /etc/hosts
|
||||||
|
|
||||||
@@ -40,6 +43,5 @@ jobs:
|
|||||||
name: build-artifact
|
name: build-artifact
|
||||||
|
|
||||||
- name: execute
|
- name: execute
|
||||||
run: |
|
run: chmod +x app
|
||||||
chmod +x app
|
run: ./app
|
||||||
./app
|
|
||||||
|
|||||||
Reference in New Issue
Block a user