Skip to content

Commit

Permalink
remove cache
Browse files Browse the repository at this point in the history
  • Loading branch information
vChavezB authored May 24, 2024
1 parent 86d8eaf commit 51ac3a3
Showing 1 changed file with 8 additions and 20 deletions.
28 changes: 8 additions & 20 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
name: Build Demo
# Copyright (c) 2024, Victor Chavez
# SPDX-License-Identifier: GPL-3.0-or-later

name: Build

on:
push:
pull_request:

jobs:

build:
runs-on: ubuntu-22.04
container: ghcr.io/zephyrproject-rtos/ci:v0.26.2
Expand All @@ -15,34 +19,18 @@ jobs:
BOARD: nrf52833dk_nrf52833
strategy:
matrix:
board: ["esp32", "nrf52833dk_nrf52833"]
board: ["esp32","nrf52833dk_nrf52833"]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true

# Cache the west workspace
- name: Cache west workspace
id: cache-west
uses: actions/cache@v3
with:
path: /tmp/west
key: ${{ runner.os }}-west-${{ hashFiles('**/west.yml') }}
restore-keys: |
${{ runner.os }}-west-
# Only run initialization if the cache was not restored
- name: Initialize
if: steps.cache-west.outputs.cache-hit != 'true'
run: |
mkdir -p /tmp/west
cd /tmp/west
cd /tmp/
west init
west update -o=--depth=1 -n
# Matrix-specific build step
- name: Build PoC
working-directory: /tmp/west
working-directory: /tmp/
run: |
west build $GITHUB_WORKSPACE/samples/demo -b ${{ matrix.board }} --build-dir $GITHUB_WORKSPACE/build

0 comments on commit 51ac3a3

Please sign in to comment.