Skip to content

Commit

Permalink
Merge pull request #16 from makotom/20220217-build-env
Browse files Browse the repository at this point in the history
Update build env
  • Loading branch information
makotom authored Feb 17, 2022
2 parents c1a520d + cb2379e commit c03af60
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ parameters:
default: iperf3-macos

executors:
debian:
ubuntu:
docker:
- image: debian:bullseye-slim
- image: ubuntu:rolling
archlinux:
docker:
- image: archlinux
Expand All @@ -58,7 +58,7 @@ executors:

jobs:
setup:
executor: debian
executor: ubuntu
parameters:
continue-config:
type: string
Expand Down Expand Up @@ -121,13 +121,11 @@ jobs:
fi
build-linux:
executor: debian
executor: archlinux
steps:
- run:
name: Install dependencies
command: |
apt update
apt install -y openssl git gcc make xz-utils
command: pacman -Syu --noconfirm git gcc make
- run:
name: Clone iperf3
command: |
Expand All @@ -153,13 +151,13 @@ jobs:
cp LICENSE $IPERF3_MAKE_PREFIX/share/doc/iperf3
- run:
name: Create a tarball
command: tar -cJf << pipeline.parameters.label-linux >>.tar.xz << pipeline.parameters.label-linux >>
command: tar -czf << pipeline.parameters.label-linux >>.tar.gz << pipeline.parameters.label-linux >>
- persist_to_workspace:
root: .
paths:
- << pipeline.parameters.label-linux >>.tar.xz
- << pipeline.parameters.label-linux >>.tar.gz
- store_artifacts:
path: << pipeline.parameters.label-linux >>.tar.xz
path: << pipeline.parameters.label-linux >>.tar.gz

build-windows:
executor: windows
Expand Down Expand Up @@ -299,7 +297,7 @@ jobs:
command: << parameters.dir >>/bin/iperf3 -c localhost -R

release:
executor: debian
executor: ubuntu
steps:
- attach_workspace:
at: .
Expand Down Expand Up @@ -337,14 +335,14 @@ workflows:
name: test-linux
requires:
- build-linux
executor: archlinux
executor: ubuntu
dir: << pipeline.parameters.label-linux >>
pre-steps:
- attach_workspace:
at: .
- run:
name: Extract << pipeline.parameters.label-linux >>.tar.xz
command: tar -xf << pipeline.parameters.label-linux >>.tar.xz
name: Extract << pipeline.parameters.label-linux >>.tar.gz
command: tar -xf << pipeline.parameters.label-linux >>.tar.gz
- test-unified:
name: test-windows
requires:
Expand Down

0 comments on commit c03af60

Please sign in to comment.