mirror of
https://github.com/urbit/shrub.git
synced 2024-12-26 21:44:11 +03:00
94 lines
2.4 KiB
YAML
94 lines
2.4 KiB
YAML
|
|
name: vere
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
upload:
|
|
description: 'upload binaries to gcp'
|
|
type: boolean
|
|
default: false
|
|
required: false
|
|
pace:
|
|
description: 'release pace'
|
|
type: string
|
|
default: 'edge'
|
|
required: false
|
|
next:
|
|
description: 'next kelvin version'
|
|
type: string
|
|
default: null
|
|
required: false
|
|
secrets:
|
|
CACHIX_AUTH_TOKEN:
|
|
required: false
|
|
GCP_CREDENTIALS:
|
|
required: false
|
|
GCS_SERVICE_ACCOUNT_KEY:
|
|
required: false
|
|
GCS_PROJECT:
|
|
required: false
|
|
|
|
workflow_dispatch:
|
|
inputs:
|
|
upload:
|
|
description: 'upload binaries to gcp'
|
|
type: boolean
|
|
default: false
|
|
required: false
|
|
pace:
|
|
description: 'release pace'
|
|
type: choice
|
|
options:
|
|
- edge
|
|
- soon
|
|
- live
|
|
|
|
jobs:
|
|
urbit:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- { os: ubuntu-latest, type: linux }
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
# We only want the extra nix config on linux, where it is necessary
|
|
# for the docker build. We don't want in on Mac, where it isn't but
|
|
# it breaks the nix install. The two `if` clauses should be mutually
|
|
# exclusive
|
|
- uses: cachix/install-nix-action@v20
|
|
with:
|
|
extra_nix_config: |
|
|
system-features = nixos-test benchmark big-parallel kvm
|
|
if: ${{ matrix.type == 'linux' }}
|
|
- uses: cachix/install-nix-action@v20
|
|
if: ${{ matrix.os != 'ubuntu-latest' }}
|
|
|
|
- uses: cachix/cachix-action@v10
|
|
with:
|
|
name: ares
|
|
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
|
|
|
|
- if: ${{ matrix.os == 'ubuntu-latest' }}
|
|
name: run urbit-tests
|
|
run: |
|
|
cp -RL tests pkg/arvo/tests
|
|
if ${{ inputs.next != null }}; then
|
|
base="https://bootstrap.urbit.org/vere/next/kelvin/${{ inputs.next }}"
|
|
else
|
|
base="https://bootstrap.urbit.org/vere/${{ inputs.pace }}"
|
|
fi
|
|
vere=$(curl ${base}/last)
|
|
url="$(echo ${base}/v${vere}/vere-v${vere}-linux-x86_64)"
|
|
echo $vere
|
|
echo $url
|
|
# put in .jam so it doesn't crash when it gets -A'd in
|
|
curl -Lo pkg/arvo/vere.jam "$url"
|
|
chmod +x pkg/arvo/vere.jam
|
|
nix-build -A urbit-tests
|