Skip to content

Commit

Permalink
Update build env
Browse files Browse the repository at this point in the history
  • Loading branch information
makotom committed Feb 17, 2022
1 parent c1a520d commit cb2379e
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 cb2379e

Please sign in to comment.