Skip to content
.harness-ci.yml 1.42 KiB
Newer Older
theMackabu's avatar
theMackabu committed
version: 1
kind: pipeline
spec:
  stages:
    - name: binary_x64
theMackabu's avatar
theMackabu committed
      type: ci
      spec:
        steps:
          - name: build
theMackabu's avatar
theMackabu committed
            type: run
            spec:
theMackabu's avatar
theMackabu committed
              container: themackabu/rust:zigbuild-1.79.0-sccache
theMackabu's avatar
theMackabu committed
              script: |-
                export CC="/usr/bin/clang"
                export CXX="/usr/bin/clang++"
theMackabu's avatar
theMackabu committed
                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
theMackabu's avatar
theMackabu committed
                zip pmc_${{ build.commit }}-B${{ build.number }}.zip /usr/local/build/target/release/pmc -j
theMackabu's avatar
theMackabu committed
          - spec:
              inputs:
                access_key: ${{ secrets.get("pmc_s3_key") }}
theMackabu's avatar
theMackabu committed
                acl: read-write
theMackabu's avatar
theMackabu committed
                bucket: artifacts
theMackabu's avatar
theMackabu committed
                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
theMackabu's avatar
theMackabu committed
              name: s3
            type: plugin
            name: upload