-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.harness-ci.yml
38 lines (38 loc) · 1.42 KB
/
.harness-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
version: 1
kind: pipeline
spec:
stages:
- name: binary_x64
type: ci
spec:
steps:
- name: build
type: run
spec:
container: themackabu/rust:zigbuild-1.79.0-sccache
script: |-
export CC="/usr/bin/clang"
export CXX="/usr/bin/clang++"
export SCCACHE_S3_USE_SSL=true
export AWS_ACCESS_KEY_ID=${{ secrets.get("pmc_s3_key") }}
export AWS_SECRET_ACCESS_KEY=${{ secrets.get("pmc_s3_secret") }}
export SCCACHE_BUCKET=sccache
export SCCACHE_ENDPOINT=https://gateway.storjshare.io
export SCCACHE_REGION=auto
export RUSTC_WRAPPER=/usr/local/cargo/bin/sccache
cargo zigbuild -r -j 4
zip pmc_${{ build.commit }}-B${{ build.number }}.zip /usr/local/build/target/release/pmc -j
- spec:
inputs:
access_key: ${{ secrets.get("pmc_s3_key") }}
acl: read-write
bucket: artifacts
region: us1
path_style: false
endpoint: https://gateway.storjshare.io
secret_key: ${{ secrets.get("pmc_s3_secret") }}
target: gitness
source: pmc_${{ build.commit }}-B${{ build.number }}.zip
name: s3
type: plugin
name: upload