1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-06-18 15:17:46 +02:00

chore: Add check that the static build script works.

Otherwise it'll break again in the future and we won't know.
This commit is contained in:
iphydf 2022-01-13 00:55:06 +00:00
parent 4bd1d9bfee
commit ceb175e3f1
No known key found for this signature in database
GPG Key ID: 3855DBA2D74403C9
4 changed files with 20 additions and 2 deletions

View File

@ -1,7 +1,7 @@
---
cirrus-ci_task:
container:
image: toxchat/toktok-stack:0.0.31-third_party
image: toxchat/toktok-stack:0.0.31-release
cpu: 2
memory: 2G
configure_script:
@ -9,5 +9,4 @@ cirrus-ci_task:
test_all_script:
- cd /src/workspace && bazel test -k
--remote_http_cache=http://$CIRRUS_HTTP_CACHE_HOST
--config=release
//toxic/...

View File

@ -12,6 +12,7 @@ branches:
required_status_checks:
contexts:
- build
- build-static
- cirrus-ci
- Codacy Static Code Analysis
- code-review/reviewable

View File

@ -37,6 +37,22 @@ jobs:
- name: Build toxic
run: make -j4
build-static:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build minimal static toxic binary
run: docker run --rm
-v /tmp/artifact:/artifact
-v $PWD:/toxic
amd64/alpine:latest
sh -c 'yes | /toxic/script/build-minimal-static-toxic.sh'
- name: Display binary checksum
run: |
tar Jxf /tmp/artifact/toxic-minimal-static-musl_linux_x86-64.tar.xz
sha256sum toxic-minimal-static-musl_linux_x86-64/toxic
infer:
runs-on: ubuntu-latest
container: toxchat/infer

View File

@ -1,6 +1,8 @@
load("@rules_cc//cc:defs.bzl", "cc_binary")
load("//tools/project:build_defs.bzl", "project")
package(features = ["layering_check"])
project()
cc_binary(