Skip to content

Commit

Permalink
Update circleci, using docker build x86-64
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackarain committed Nov 21, 2023
1 parent 6fcf803 commit e3f6cb2
Showing 1 changed file with 18 additions and 31 deletions.
49 changes: 18 additions & 31 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ jobs:
image: ubuntu-2004:202101-01
resource_class: arm.medium
steps:
- run: uname -a
- run:
name: Check OS
command: uname -a

- checkout
- run:
name: Build Classic
name: Build in docker
command: |
docker build . -t proxy:v1
docker create --name ps proxy:v1
Expand All @@ -20,44 +22,29 @@ jobs:
- store_artifacts:
path: build/docker

build:
docker:
- image: cimg/base:edge
build-x86_64:
machine:
image: ubuntu-2004:202101-01
docker_layer_caching: true
steps:
- checkout
- run:
name: Update OS
command: |
sudo apt-get update
sudo apt-get install -y
sudo rm -rf /var/lib/apt/lists/*
- run:
name: Install CMake&Ninja
command: |
sudo apt-get update
sudo apt-get install -y cmake ninja-build
- run:
name: Check versions
command: |
g++ --version
cmake --version
name: Check OS
command: uname -a

- checkout
- run:
name: Build Classic
name: Build in docker
command: |
mkdir build
cd build
cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release -DENABLE_BUILD_WERROR=OFF
ninja -j1
cp -r bin /tmp
docker build . -t proxy:v1
docker create --name ps proxy:v1
mkdir -p build/docker
docker cp ps:/usr/local/bin/proxy_server build/docker
- store_artifacts:
path: /tmp/bin
path: build/docker

workflows:
build-workflow:
jobs:
- build
- build-x86_64
- build-aarch64

0 comments on commit e3f6cb2

Please sign in to comment.