Skip to content

Commit

Permalink
Update GH actions to v4 (Node20)
Browse files Browse the repository at this point in the history
  • Loading branch information
smittytone committed Apr 22, 2024
1 parent ba2158d commit d21ccce
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
on:
push:
branches:
- develop
pull_request:
workflow_dispatch:
schedule:
Expand All @@ -10,15 +12,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Get application code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Get Pre-reqs
run: DEBIAN_FRONTEND=noninteractive && sudo apt-get update -qq && sudo apt-get install -yqq gcc-arm-none-eabi binutils-arm-none-eabi build-essential libsecret-1-dev cmake curl git
- name: Build application code
run: cmake -S . -B build && cmake --build build
- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: mv-clock-demo-linux-native
path: ${{ github.workspace }}/build/app/microvisor-cpp-clock-demo.*
Expand All @@ -28,15 +30,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Get application code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Build Docker image
run: docker build --build-arg UID=$(id -u) --build-arg GID=$(id -g) -t mv-clock-image-lin-dock .
- name: Build application code
run: docker run --rm -v $(pwd)/:/home/mvisor/project/ --env BUILD_ONLY=true --name mv-clock-lin-dock mv-clock-image-lin-dock
- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: mv-clock-demo-linux-docker
path: ${{ github.workspace }}/build/app/microvisor-cpp-clock-demo.*
Expand All @@ -53,15 +55,15 @@ jobs:
with:
distribution: Ubuntu-20.04
- name: Get application code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Get Pre-reqs
run: DEBIAN_FRONTEND=noninteractive && sudo apt-get update -qq && apt-get install -yqq gcc-arm-none-eabi binutils-arm-none-eabi build-essential libsecret-1-dev cmake curl git
- name: Build code
run: cmake -S . -B build && cmake --build build
- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: mv-clock-demo-win-wsl
path: ${{ github.workspace }}/build/app/microvisor-cpp-clock-demo.*
Expand All @@ -71,7 +73,7 @@ jobs:
runs-on: macos-latest
steps:
- name: Get application code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Get Docker
Expand All @@ -83,7 +85,7 @@ jobs:
- name: Build code
run: docker run --rm -v $(pwd)/:/home/mvisor/project/ --env BUILD_ONLY=true --name mv-clock-mac-dock mv-clock-image-mac-dock
- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: mv-clock-demo-mac-docker
path: ${{ github.workspace }}/build/app/microvisor-cpp-clock-demo.*
Expand Down

0 comments on commit d21ccce

Please sign in to comment.