From 8bbdc31ac0516d39f4bab088aaf2c2bfdb7dadca Mon Sep 17 00:00:00 2001 From: minhanghuang Date: Sat, 14 Dec 2024 11:09:10 +0800 Subject: [PATCH] fix(ci): update ci for ubuntu18.04(https://github.com/actions/checkout/issues/1809\#issuecomment-2530147955) --- .github/workflows/ubuntu18-arrch64-v9.0.0-build.yaml | 6 +++++- .github/workflows/ubuntu18-v9.0.0-build.yaml | 10 ++++++---- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ubuntu18-arrch64-v9.0.0-build.yaml b/.github/workflows/ubuntu18-arrch64-v9.0.0-build.yaml index 31acf5a..2b63369 100644 --- a/.github/workflows/ubuntu18-arrch64-v9.0.0-build.yaml +++ b/.github/workflows/ubuntu18-arrch64-v9.0.0-build.yaml @@ -10,7 +10,11 @@ jobs: build-arm-ubuntu18: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - name: Check out repository code + uses: actions/checkout@v1 # https://github.com/actions/checkout/issues/1590 + with: + fetch-depth: 1 + - uses: uraimo/run-on-arch-action@v2 name: Run commands env: diff --git a/.github/workflows/ubuntu18-v9.0.0-build.yaml b/.github/workflows/ubuntu18-v9.0.0-build.yaml index 8cbe5c4..491603b 100644 --- a/.github/workflows/ubuntu18-v9.0.0-build.yaml +++ b/.github/workflows/ubuntu18-v9.0.0-build.yaml @@ -18,10 +18,12 @@ jobs: runs-on: ubuntu-latest container: image: docker://ubuntu:18.04 - options: --volume ${{ github.workspace }}:/workspace/${{ github.repository }} + # options: --volume ${{ github.workspace }}:/workspace/${{ github.repository }} steps: - name: Check out repository code - uses: actions/checkout@v3 + uses: actions/checkout@v1 # https://github.com/actions/checkout/issues/1590 + with: + fetch-depth: 1 - name: Install env: @@ -29,7 +31,7 @@ jobs: run: | apt update apt install -y lsb-release git wget pkg-config g++ cmake uuid-dev libncurses5-dev python3-dev - cd /workspace/${{ github.repository }} && python3 install.py + cd python3 install.py - name: Build run: | @@ -37,4 +39,4 @@ jobs: uname -a lsb_release -a echo "-----------------------" - bash -c "cd /workspace/${{ github.repository }} && source install/setup.bash && mkdir -p build && cd build && cmake .. && make -j$(nproc)" + bash -c "source install/setup.bash && mkdir -p build && cd build && cmake .. && make -j$(nproc)"