From cc4d5b75a99bfae779d89139e8707aa52b175217 Mon Sep 17 00:00:00 2001 From: ittuann <80267918+ittuann@users.noreply.github.com> Date: Fri, 8 Dec 2023 20:47:40 +0800 Subject: [PATCH] Optimize workflow --- .github/workflows/docker-image.yml | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index d905681..fac10b6 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -7,18 +7,15 @@ jobs: container: image: archlinux:latest steps: - - name: base-devel - run: pacman -Syyu base-devel --noconfirm - - name: arm-none-eabi-gcc - run: pacman -Syyu arm-none-eabi-gcc --noconfirm - - name: arm-none-eabi-newlib - run: pacman -Syyu arm-none-eabi-newlib --noconfirm - - name: git - run: pacman -Syyu git --noconfirm - - name: python-pip - run: pacman -Syyu python-pip --noconfirm - - name: python-crcmod - run: pacman -Syyu python-crcmod --noconfirm + - name: Install dependencies + run: | + pacman -Syyu --noconfirm \ + base-devel \ + arm-none-eabi-gcc \ + arm-none-eabi-newlib \ + git \ + python-pip \ + python-crcmod - name: Checkout uses: actions/checkout@v3 @@ -30,7 +27,7 @@ jobs: - name: size run: arm-none-eabi-size firmware - - name: 'Upload Artifact' + - name: Upload Artifact uses: actions/upload-artifact@v3 with: name: firmware