single-line run commands ware better than the multi-line ones
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user