Skip to content

Commit a8dd62a

Browse files
author
Pat
authored
workflows: fix ci (#56)
Signed-off-by: Patrick Stephens <[email protected]>
1 parent 02e2e81 commit a8dd62a

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

.github/workflows/build.yaml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,17 +67,29 @@ jobs:
6767
sed -i -e "s/^mirrorlist=http:\/\/mirrorlist.centos.org/#mirrorlist=http:\/\/mirrorlist.centos.org/g" /etc/yum.repos.d/CentOS-Base.repo
6868
sed -i -e "s/^#baseurl=http:\/\/mirror.centos.org/baseurl=http:\/\/vault.centos.org/g" /etc/yum.repos.d/CentOS-Base.repo
6969
yum -y update
70-
yum install -y ca-certificates cmake gcc gcc-c++ make wget
70+
yum install -y ca-certificates cmake gcc gcc-c++ git make wget
7171
yum install -y epel-release
7272
yum install -y cmake3
7373
shell: bash
7474

75-
- uses: actions/checkout@v4
75+
- name: Clone repo without submodules (1.8.3 version of Git)
76+
run: |
77+
git clone https://github.com/fluent/cfl.git
78+
shell: bash
79+
80+
- name: Check out the branch (1.8.3 version of Git)
81+
env:
82+
BRANCH_NAME: ${{ github.head_ref }}
83+
run: |
84+
git checkout "$BRANCH_NAME"
85+
shell: bash
86+
working-directory: cfl
7687

7788
- name: Run compilation
7889
run: |
7990
cmake3 -DCFL_DEV=on .
8091
make
92+
working-directory: cfl
8193

8294
build-debian:
8395
name: Debian Buster build to confirm no issues once used downstream
@@ -108,17 +120,17 @@ jobs:
108120
steps:
109121
- uses: actions/checkout@v4
110122
- name: Build on ${{ matrix.os }} with ${{ matrix.compiler }}
111-
uses: uraimo/run-on-arch-action@v2.5.0
123+
uses: uraimo/run-on-arch-action@v2.8.1
112124
with:
113125
arch: aarch64
114-
distro: ubuntu20.04
126+
distro: ubuntu_latest
115127
run: |
116128
apt-get update && \
117129
apt-get install -y --no-install-recommends \
118130
build-essential \
119131
cmake \
120132
file \
121-
make
133+
make
122134
export CC=${{ env.compiler }}
123135
cmake -DCFL_TESTS=On .
124136
make all

0 commit comments

Comments
 (0)