aboutsummaryrefslogtreecommitdiff
path: root/ci/drone/linux_script_base
blob: 2788eb2df665a66c06b81a976958b1c0905f7428 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

# https://docs.drone.io/pipeline/docker/syntax/workspace/
#
# Drone automatically creates a temporary volume, known as your workspace,
# where it clones your repository. The workspace is the current working
# directory for each step in your pipeline.
#
# Because the workspace is a volume, filesystem changes are persisted between
# pipeline steps. In other words, individual steps can communicate and share
# state using the filesystem.
#
# Workspace volumes are ephemeral. They are created when the pipeline starts
# and destroyed after the pipeline completes.

set -x
set -e

TRIPLEARCH="$(uname -m)"
DISTDIR="$DRONE_WORKSPACE/dist"

export ZIG_GLOBAL_CACHE_DIR="$DRONE_WORKSPACE/zig-cache"