Skip to content

Commit

Permalink
Github actions: use safe.directory
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromecoutant committed Aug 16, 2022
1 parent 66bcf07 commit 6986b89
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 8 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/full_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: build CL1
uses: addnab/docker-run-action@v3
Expand All @@ -19,16 +19,18 @@ jobs:
image: ghcr.io/armmbed/mbed-os-env:latest
shell: bash
run: |
set -x
pip3 list
pip3 install mbed-tools -U
git clone https://github.com/ARMmbed/mbed-os.git
git config --global --add safe.directory /stm32customtargets
python3 aci_build.py --all
CLI1-baremetal:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: build CL1
uses: addnab/docker-run-action@v3
Expand All @@ -37,16 +39,18 @@ jobs:
image: ghcr.io/armmbed/mbed-os-env:latest
shell: bash
run: |
set -x
pip3 list
pip3 install mbed-tools -U
git clone https://github.com/ARMmbed/mbed-os.git
git config --global --add safe.directory /stm32customtargets
python3 aci_build.py --all --baremetal
CLI2:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: build CL2
uses: addnab/docker-run-action@v3
Expand All @@ -55,16 +59,18 @@ jobs:
image: ghcr.io/armmbed/mbed-os-env:latest
shell: bash
run: |
set -x
pip3 list
pip3 install mbed-tools -U
git clone https://github.com/ARMmbed/mbed-os.git
git config --global --add safe.directory /stm32customtargets
python3 aci_build.py --cli2 --all
CLI2-baremetal:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: build CL2
uses: addnab/docker-run-action@v3
Expand All @@ -73,16 +79,18 @@ jobs:
image: ghcr.io/armmbed/mbed-os-env:latest
shell: bash
run: |
set -x
pip3 list
pip3 install mbed-tools -U
git clone https://github.com/ARMmbed/mbed-os.git
git config --global --add safe.directory /stm32customtargets
python3 aci_build.py --cli2 --all --baremetal
PIN_STANDARD:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: aci_pinvalidate.py
uses: addnab/docker-run-action@v3
Expand All @@ -91,4 +99,6 @@ jobs:
image: ghcr.io/armmbed/mbed-os-env:latest
shell: bash
run: |
set -x
git config --global --add safe.directory /stm32customtargets
python3 aci_build.py --pin --all
12 changes: 9 additions & 3 deletions .github/workflows/partial_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

Expand All @@ -20,15 +20,17 @@ jobs:
image: ghcr.io/armmbed/mbed-os-env:latest
shell: bash
run: |
set -x
pip3 list
git clone https://github.com/ARMmbed/mbed-os.git
git config --global --add safe.directory /stm32customtargets
python3 aci_build.py
CLI2:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

Expand All @@ -39,15 +41,17 @@ jobs:
image: ghcr.io/armmbed/mbed-os-env:latest
shell: bash
run: |
set -x
pip3 list
git clone https://github.com/ARMmbed/mbed-os.git
git config --global --add safe.directory /stm32customtargets
python3 aci_build.py --cli2
PIN_STANDARD:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

Expand All @@ -58,5 +62,7 @@ jobs:
image: ghcr.io/armmbed/mbed-os-env:latest
shell: bash
run: |
set -x
pip3 list
git config --global --add safe.directory /stm32customtargets
python3 aci_build.py --pin

0 comments on commit 6986b89

Please sign in to comment.