forge
ExploreLog in

Tahinli/forge

public
0 watching
★ 0
830 bytes
1# CI for forge itself. Format: docs/ci.md, parser: crates/forge-ci/src/config.rs.
2#
3# cmake is needed because aws-lc-sys (via aws-lc-rs, pulled in by rustls) builds its C
4# sources with cmake. The rust image has a C compiler but not cmake.
5# The workflow has no branch condition, so the build job also runs for pull requests.
6
7[on]
8push = ["main"]
9pull_request = true
10manual = true
11
12[jobs.test]
13image = "docker.io/library/rust:1"
14run = """
15apt-get update
16apt-get install -y --no-install-recommends cmake
17cargo test --workspace
18"""
19timeout_minutes = 60
20
21[jobs.build]
22image = "docker.io/library/rust:1"
23needs = ["test"]
24run = """
25apt-get update
26apt-get install -y --no-install-recommends cmake
27cargo build --profile dist -p forge-web
28mkdir -p dist
29cp target/dist/forge dist/forge
30"""
31artifacts = ["dist/forge"]
32timeout_minutes = 60