Skip to content

Commit

Permalink
chore: Add binary deploy workflows.
Browse files Browse the repository at this point in the history
  • Loading branch information
iphydf committed Jan 27, 2025
1 parent c834472 commit 42f3813
Show file tree
Hide file tree
Showing 8 changed files with 791 additions and 568 deletions.
310 changes: 155 additions & 155 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,155 +1,155 @@
---
version: 2

workflows:
version: 2
circleci:
jobs:
- bazel-asan
- bazel-dbg
- bazel-msan
- bazel-opt
- clang-analyze
- cpplint
- static-analysis
- cimple
- cimplefmt
- generate-events

jobs:
bazel-asan:
working_directory: /tmp/cirrus-ci-build
docker:
- image: toxchat/toktok-stack:latest-asan

steps:
- checkout
- run: .circleci/bazel-test
//c-toxcore/...

bazel-dbg:
working_directory: /tmp/cirrus-ci-build
docker:
- image: toxchat/toktok-stack:latest-debug

steps:
- checkout
- run: .circleci/bazel-test
//c-toxcore/...

bazel-msan:
working_directory: /tmp/cirrus-ci-build
docker:
- image: toxchat/toktok-stack:latest-msan

steps:
- checkout
- run: .circleci/bazel-test
//c-toxcore/auto_tests:lossless_packet_test

bazel-opt:
working_directory: /tmp/cirrus-ci-build
docker:
- image: toxchat/toktok-stack:latest-release

steps:
- checkout
- run: .circleci/bazel-test
//c-toxcore/...

static-analysis:
working_directory: ~/work
docker:
- image: ubuntu

steps:
- run: &apt_install
apt-get update &&
DEBIAN_FRONTEND=noninteractive
apt-get install -y
ca-certificates
clang
cmake
git
libbenchmark-dev
libconfig-dev
libgmock-dev
libgtest-dev
libopus-dev
libsodium-dev
libvpx-dev
llvm-dev
ninja-build
pkg-config
- run:
apt-get install -y --no-install-recommends
ca-certificates
g++
llvm-dev
- checkout
- run: git submodule update --init --recursive
- run: other/analysis/check_includes
- run: other/analysis/check_logger_levels
- run: other/analysis/run-clang
- run: other/analysis/run-gcc

clang-analyze:
working_directory: ~/work
docker:
- image: ubuntu

steps:
- run: *apt_install
- checkout
- run: git submodule update --init --recursive
- run: other/analysis/run-clang-analyze

cpplint:
working_directory: ~/work
docker:
- image: ubuntu

steps:
- run: *apt_install
- run:
apt-get install -y --no-install-recommends
cpplint
- checkout
- run: git submodule update --init --recursive
- run: other/analysis/run-cpplint

cimple:
working_directory: /tmp/cirrus-ci-build
docker:
- image: toxchat/toktok-stack:latest-release

steps:
- checkout
- run: git submodule update --init --recursive
- run: /src/workspace/tools/inject-repo c-toxcore
- run: cd /src/workspace &&
bazel test
-k
--build_tag_filters=haskell
--test_tag_filters=haskell
--
//c-toxcore/...

cimplefmt:
working_directory: ~/work
machine: { image: ubuntu-2204:current }

steps:
- checkout
- run: git submodule update --init --recursive
- run: other/docker/cimplefmt/run -u $(find tox* -name "*.[ch]")

generate-events:
working_directory: ~/work
machine: { image: ubuntu-2204:current }

steps:
- checkout
- run: git submodule update --init --recursive
- run: other/event_tooling/run
- run: git diff --exit-code
# ---
# version: 2

# workflows:
# version: 2
# circleci:
# jobs:
# - bazel-asan
# - bazel-dbg
# - bazel-msan
# - bazel-opt
# - clang-analyze
# - cpplint
# - static-analysis
# - cimple
# - cimplefmt
# - generate-events

# jobs:
# bazel-asan:
# working_directory: /tmp/cirrus-ci-build
# docker:
# - image: toxchat/toktok-stack:latest-asan

# steps:
# - checkout
# - run: .circleci/bazel-test
# //c-toxcore/...

# bazel-dbg:
# working_directory: /tmp/cirrus-ci-build
# docker:
# - image: toxchat/toktok-stack:latest-debug

# steps:
# - checkout
# - run: .circleci/bazel-test
# //c-toxcore/...

# bazel-msan:
# working_directory: /tmp/cirrus-ci-build
# docker:
# - image: toxchat/toktok-stack:latest-msan

# steps:
# - checkout
# - run: .circleci/bazel-test
# //c-toxcore/auto_tests:lossless_packet_test

# bazel-opt:
# working_directory: /tmp/cirrus-ci-build
# docker:
# - image: toxchat/toktok-stack:latest-release

# steps:
# - checkout
# - run: .circleci/bazel-test
# //c-toxcore/...

# static-analysis:
# working_directory: ~/work
# docker:
# - image: ubuntu

# steps:
# - run: &apt_install
# apt-get update &&
# DEBIAN_FRONTEND=noninteractive
# apt-get install -y
# ca-certificates
# clang
# cmake
# git
# libbenchmark-dev
# libconfig-dev
# libgmock-dev
# libgtest-dev
# libopus-dev
# libsodium-dev
# libvpx-dev
# llvm-dev
# ninja-build
# pkg-config
# - run:
# apt-get install -y --no-install-recommends
# ca-certificates
# g++
# llvm-dev
# - checkout
# - run: git submodule update --init --recursive
# - run: other/analysis/check_includes
# - run: other/analysis/check_logger_levels
# - run: other/analysis/run-clang
# - run: other/analysis/run-gcc

# clang-analyze:
# working_directory: ~/work
# docker:
# - image: ubuntu

# steps:
# - run: *apt_install
# - checkout
# - run: git submodule update --init --recursive
# - run: other/analysis/run-clang-analyze

# cpplint:
# working_directory: ~/work
# docker:
# - image: ubuntu

# steps:
# - run: *apt_install
# - run:
# apt-get install -y --no-install-recommends
# cpplint
# - checkout
# - run: git submodule update --init --recursive
# - run: other/analysis/run-cpplint

# cimple:
# working_directory: /tmp/cirrus-ci-build
# docker:
# - image: toxchat/toktok-stack:latest-release

# steps:
# - checkout
# - run: git submodule update --init --recursive
# - run: /src/workspace/tools/inject-repo c-toxcore
# - run: cd /src/workspace &&
# bazel test
# -k
# --build_tag_filters=haskell
# --test_tag_filters=haskell
# --
# //c-toxcore/...

# cimplefmt:
# working_directory: ~/work
# machine: { image: ubuntu-2204:current }

# steps:
# - checkout
# - run: git submodule update --init --recursive
# - run: other/docker/cimplefmt/run -u $(find tox* -name "*.[ch]")

# generate-events:
# working_directory: ~/work
# machine: { image: ubuntu-2204:current }

# steps:
# - checkout
# - run: git submodule update --init --recursive
# - run: other/event_tooling/run
# - run: git diff --exit-code
Loading

0 comments on commit 42f3813

Please sign in to comment.