2022-05-27 20:12:00 +03:00
|
|
|
|
|
|
|
name: vere
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_call:
|
|
|
|
inputs:
|
|
|
|
upload:
|
|
|
|
description: 'upload binaries to gcp'
|
|
|
|
type: boolean
|
|
|
|
default: false
|
|
|
|
required: false
|
|
|
|
pace:
|
|
|
|
description: 'release pace'
|
|
|
|
type: string
|
2022-11-11 19:47:07 +03:00
|
|
|
default: 'edge'
|
2022-05-27 20:12:00 +03:00
|
|
|
required: false
|
2023-03-23 18:28:40 +03:00
|
|
|
next:
|
2023-03-28 18:03:26 +03:00
|
|
|
description: 'next kelvin version branch name'
|
2023-03-23 18:28:40 +03:00
|
|
|
type: string
|
|
|
|
default: null
|
|
|
|
required: false
|
2022-05-27 20:12:00 +03:00
|
|
|
secrets:
|
|
|
|
CACHIX_AUTH_TOKEN:
|
2022-06-03 09:13:40 +03:00
|
|
|
required: false
|
2022-11-11 19:24:15 +03:00
|
|
|
GCP_CREDENTIALS:
|
|
|
|
required: false
|
2022-05-27 20:12:00 +03:00
|
|
|
GCS_SERVICE_ACCOUNT_KEY:
|
2022-06-03 09:13:40 +03:00
|
|
|
required: false
|
2022-05-27 20:12:00 +03:00
|
|
|
GCS_PROJECT:
|
2022-06-03 09:13:40 +03:00
|
|
|
required: false
|
2022-05-27 20:12:00 +03:00
|
|
|
|
|
|
|
workflow_dispatch:
|
|
|
|
inputs:
|
|
|
|
upload:
|
|
|
|
description: 'upload binaries to gcp'
|
|
|
|
type: boolean
|
|
|
|
default: false
|
|
|
|
required: false
|
|
|
|
pace:
|
|
|
|
description: 'release pace'
|
|
|
|
type: choice
|
|
|
|
options:
|
2022-11-11 19:47:07 +03:00
|
|
|
- edge
|
2022-05-27 20:12:00 +03:00
|
|
|
- soon
|
2022-06-01 10:23:53 +03:00
|
|
|
- live
|
2022-05-27 20:12:00 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
urbit:
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
include:
|
2022-11-11 06:44:05 +03:00
|
|
|
- { os: ubuntu-latest, type: linux }
|
2022-05-27 20:12:00 +03:00
|
|
|
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
steps:
|
2023-07-07 18:53:56 +03:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
lfs: true
|
2022-05-27 20:12:00 +03:00
|
|
|
|
|
|
|
# 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
|
2023-03-03 20:43:46 +03:00
|
|
|
- uses: cachix/install-nix-action@v20
|
2022-05-27 20:12:00 +03:00
|
|
|
with:
|
|
|
|
extra_nix_config: |
|
|
|
|
system-features = nixos-test benchmark big-parallel kvm
|
2022-11-11 06:44:05 +03:00
|
|
|
if: ${{ matrix.type == 'linux' }}
|
2023-03-03 20:43:46 +03:00
|
|
|
- uses: cachix/install-nix-action@v20
|
2022-05-27 20:12:00 +03:00
|
|
|
if: ${{ matrix.os != 'ubuntu-latest' }}
|
|
|
|
|
|
|
|
- uses: cachix/cachix-action@v10
|
|
|
|
with:
|
|
|
|
name: ares
|
|
|
|
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
|
|
|
|
|
|
|
|
- if: ${{ matrix.os == 'ubuntu-latest' }}
|
2023-01-18 18:52:49 +03:00
|
|
|
name: run urbit-tests
|
|
|
|
run: |
|
2023-07-18 19:29:28 +03:00
|
|
|
if [[ "${{ inputs.next }}" == "next/kelvin/"* ]]; then
|
|
|
|
next=$(echo ${{ inputs.next }} | sed 's/[^0-9]//g')
|
|
|
|
base="https://bootstrap.urbit.org/vere/next/kelvin/${next}"
|
|
|
|
elif [[ "${{ github.head_ref }}" == "next/kelvin"* ]]; then
|
|
|
|
next=$(echo ${{ github.head_ref }} | sed 's/[^0-9]//g')
|
|
|
|
base="https://bootstrap.urbit.org/vere/next/kelvin/${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
|
|
|
|
curl -Lo urbit "$url"
|
|
|
|
chmod +x urbit
|
2023-07-18 19:32:30 +03:00
|
|
|
git add urbit
|
2023-07-18 19:29:28 +03:00
|
|
|
|
2023-07-18 17:10:08 +03:00
|
|
|
nix flake check --keep-build-log -L
|