mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-14 07:53:01 +01: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:
parent
4bd1d9bfee
commit
ceb175e3f1
@ -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/...
|
||||
|
1
.github/settings.yml
vendored
1
.github/settings.yml
vendored
@ -12,6 +12,7 @@ branches:
|
||||
required_status_checks:
|
||||
contexts:
|
||||
- build
|
||||
- build-static
|
||||
- cirrus-ci
|
||||
- Codacy Static Code Analysis
|
||||
- code-review/reviewable
|
||||
|
16
.github/workflows/ci.yml
vendored
16
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user