Skip to content

Commit

Permalink
fix(ci): update ci for ubuntu18.04(https://github.com/actions/checkou…
Browse files Browse the repository at this point in the history
  • Loading branch information
minhanghuang committed Dec 14, 2024
1 parent b520212 commit 8bbdc31
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/ubuntu18-arrch64-v9.0.0-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/ubuntu18-v9.0.0-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,25 @@ 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:
DEBIAN_FRONTEND: noninteractive
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: |
echo "-----------------------"
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)"

0 comments on commit 8bbdc31

Please sign in to comment.