Skip to content

Commit 8d20229

Browse files
author
Levent KARAGÖL
committed
Github Action .yml files have been updated
1 parent 80d50bb commit 8d20229

File tree

2 files changed

+45
-35
lines changed

2 files changed

+45
-35
lines changed
Lines changed: 3 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
name: Test
2-
1+
name: test-linux-aarch64
32

43
on:
54
push:
@@ -8,44 +7,13 @@ on:
87
pull_request:
98
branches:
109
- main
11-
workflow_dispatch:
1210

1311
jobs:
14-
linux-test-x86:
12+
test:
1513
runs-on: ubuntu-latest
1614
container:
1715
image: ubuntu:22.04
1816

19-
steps:
20-
- uses: actions/checkout@v3
21-
- name: Install prerequisites
22-
run: |
23-
apt update
24-
apt install -y build-essential g++ make cmake pkg-config git wget curl zip unzip tar
25-
- name: Install vcpkg
26-
run: |
27-
git clone https://github.com/microsoft/vcpkg.git /opt/vcpkg
28-
/opt/vcpkg/bootstrap-vcpkg.sh
29-
ln -s /opt/vcpkg/vcpkg /usr/local/bin/vcpkg
30-
- name: Clone project repository
31-
run: |
32-
git clone https://github.com/lk-libs/libcpp-http-client.git /root/libcpp-http-client
33-
- name: Run cmake with vcpkg toolchain
34-
run: |
35-
cd /root/libcpp-http-client
36-
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=/opt/vcpkg/scripts/buildsystems/vcpkg.cmake
37-
- name: Build the project
38-
run: |
39-
cd /root/libcpp-http-client
40-
cmake --build build --config Release
41-
- name: Run tests
42-
run: |
43-
cd /root/libcpp-http-client
44-
./build/test/test
45-
46-
linux-test-aarch64:
47-
needs: linux-test-x86
48-
runs-on: ubuntu-latest
4917
steps:
5018
- uses: actions/checkout@v3
5119
- uses: docker/setup-qemu-action@v1
@@ -72,4 +40,4 @@ jobs:
7240
docker exec mycontainer bash -c "cd /root/libcpp-http-client/build && ./test/test"
7341
7442
# Stop the container
75-
docker stop mycontainer
43+
docker stop mycontainer
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: test-linux-x86_64
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
container:
15+
image: ubuntu:22.04
16+
17+
steps:
18+
- uses: actions/checkout@v3
19+
- name: Install prerequisites
20+
run: |
21+
apt update
22+
apt install -y build-essential g++ make cmake pkg-config git wget curl zip unzip tar
23+
- name: Install vcpkg
24+
run: |
25+
git clone https://github.com/microsoft/vcpkg.git /opt/vcpkg
26+
/opt/vcpkg/bootstrap-vcpkg.sh
27+
ln -s /opt/vcpkg/vcpkg /usr/local/bin/vcpkg
28+
- name: Clone project repository
29+
run: |
30+
git clone https://github.com/lk-libs/libcpp-http-client.git /root/libcpp-http-client
31+
- name: Run cmake with vcpkg toolchain
32+
run: |
33+
cd /root/libcpp-http-client
34+
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=/opt/vcpkg/scripts/buildsystems/vcpkg.cmake
35+
- name: Build the project
36+
run: |
37+
cd /root/libcpp-http-client
38+
cmake --build build --config Release
39+
- name: Run tests
40+
run: |
41+
cd /root/libcpp-http-client
42+
./build/test/test

0 commit comments

Comments
 (0)