Page MenuHomePhorge

No OneTemporary

Size
3 KB
Referenced Files
None
Subscribers
None
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index db6bf66..ffac593 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,49 +1,47 @@
stages: [build, release]
image: 'themackabu/rust:zigbuild-1.79.0-sccache'
before_script:
- mkdir binary
- - apt-get update -yqq
- - apt-get install -yqq zip clang llvm
- export CC="/usr/bin/clang"
- export CXX="/usr/bin/clang++"
build_linux_amd64:
stage: build
tags: [rust]
only: [/\d+\.\d+\.\d+.*$/]
script:
- cargo zigbuild -r --color always
- zip binary/pmc_${CI_COMMIT_TAG}_linux_amd64.zip /usr/local/build/target/release/pmc -j
artifacts:
paths: [binary/]
build_linux_aarch64:
stage: build
tags: [rust]
only: [/\d+\.\d+\.\d+.*$/]
script:
- cargo zigbuild -r --target aarch64-unknown-linux-gnu --color always
- zip binary/pmc_${CI_COMMIT_TAG}_linux_aarch64.zip /usr/local/build/target/aarch64-unknown-linux-gnu/release/pmc -j
artifacts:
paths: [binary/]
build_darwin_amd64:
stage: build
tags: [rust]
only: [/\d+\.\d+\.\d+.*$/]
script:
- cargo zigbuild -r --target x86_64-apple-darwin --color always
- zip binary/pmc_${CI_COMMIT_TAG}_darwin_amd64.zip /usr/local/build/target/x86_64-apple-darwin/release/pmc -j
artifacts:
paths: [binary/]
build_darwin_aarch64:
stage: build
tags: [rust]
only: [/\d+\.\d+\.\d+.*$/]
script:
- cargo zigbuild -r --target aarch64-apple-darwin --color always
- zip binary/pmc_${CI_COMMIT_TAG}_darwin_arm.zip /usr/local/build/target/aarch64-apple-darwin/release/pmc -j
artifacts:
paths: [binary/]
diff --git a/.harness-ci.yml b/.harness-ci.yml
index ce1d857..263cfc8 100644
--- a/.harness-ci.yml
+++ b/.harness-ci.yml
@@ -1,33 +1,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
+ container: themackabu/rust:zigbuild-1.79.0-sccache
script: |-
- apt-get update -yqq
- apt-get install -yqq zip clang llvm
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 target/release/pmc -j
+ 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: themackabu-bun-cdn
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

File Metadata

Mime Type
text/x-diff
Expires
Sun, Feb 1, 9:42 PM (1 d, 21 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
494932
Default Alt Text
(3 KB)

Event Timeline