Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ahiuchingau committed Jan 17, 2024
1 parent 859befb commit 7563662
Showing 1 changed file with 4 additions and 42 deletions.
46 changes: 4 additions & 42 deletions .github/workflows/build-cross-target.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,38 +17,6 @@ defaults:
working-directory: ot3-firmware

jobs:
build-cross-config:
name: Configure for cross-compiling
runs-on: "ubuntu-20.04"
timeout-minutes: 10
steps:
- name: Checkout github actions directory
uses: actions/checkout@v4
with:
sparse-checkout: |
.github/actions
sparse-checkout-cone-mode: false
path: actions

- name: Checkout ot3-firmware repository
uses: actions/checkout@v4
with:
path: ot3-firmware

- name: Setup main
uses: ./actions/.github/actions/main-setup
with:
cache-version: ${{ secrets.CACHE_VERSION }}

- name: Configure
run: cmake --preset=cross .

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: build-cross
path: ot3-firmware/build-cross

format-ci-only:
needs: build-cross-config
runs-on: "ubuntu-20.04"
Expand Down Expand Up @@ -76,14 +44,11 @@ jobs:
with:
cache-version: ${{ secrets.CACHE_VERSION }}

- uses: actions/download-artifact@v4
with:
name: build-cross
path: ot3-firmware/build-cross
- name: Configure
run: cmake --preset=cross .

- name: Run format-ci
run: |
ls -la
cd build-cross
make ${{ matrix.target }}-format-ci
Expand Down Expand Up @@ -114,16 +79,13 @@ jobs:
with:
cache-version: ${{ secrets.CACHE_VERSION }}

- uses: actions/download-artifact@v4
with:
name: build-cross
path: ot3-firmware/build-cross
- name: Configure
run: cmake --preset=cross .

- name: Build applications
run: |
cd build-cross
make ${{ matrix.target }}-applications
make ${{ matrix.target }}-format-ci
- name: Run format-ci
run: |
Expand Down

0 comments on commit 7563662

Please sign in to comment.