mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-24 10:33:22 +03:00
Merge pull request #6372 from urbit/i/6370/use-branch-for-vere-version
ci: use branch for `vere` version
This commit is contained in:
commit
425a207903
34
.github/workflows/develop.yml
vendored
Normal file
34
.github/workflows/develop.yml
vendored
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
name: Push to develop
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 'develop'
|
||||||
|
paths:
|
||||||
|
- '.github/workflows/feature.yml'
|
||||||
|
- '.github/workflows/develop.yml'
|
||||||
|
- '.github/workflows/release.yml'
|
||||||
|
- '.github/workflows/master.yml'
|
||||||
|
- '.github/workflows/vere.yml'
|
||||||
|
- 'pkg/arvo/**'
|
||||||
|
- 'pkg/docker-image/**'
|
||||||
|
- 'pkg/ent/**'
|
||||||
|
- 'pkg/ge-additions/**'
|
||||||
|
- 'pkg/libaes_siv/**'
|
||||||
|
- 'pkg/urbit/**'
|
||||||
|
- 'pkg/urcrypt/**'
|
||||||
|
- 'tests/**'
|
||||||
|
- 'bin/**'
|
||||||
|
- 'nix/**'
|
||||||
|
- 'default.nix'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
call-vere:
|
||||||
|
uses: ./.github/workflows/vere.yml
|
||||||
|
with:
|
||||||
|
pace: 'edge'
|
||||||
|
upload: >-
|
||||||
|
${{
|
||||||
|
(github.ref_name == 'next/vere' && github.ref_type == 'branch')
|
||||||
|
}}
|
||||||
|
secrets: inherit
|
@ -1,25 +1,12 @@
|
|||||||
name: build
|
name: Feature pull request
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
|
||||||
paths:
|
|
||||||
- '.github/workflows/build.yml'
|
|
||||||
- '.github/workflows/vere.yml'
|
|
||||||
- 'pkg/arvo/**'
|
|
||||||
- 'pkg/docker-image/**'
|
|
||||||
- 'pkg/ent/**'
|
|
||||||
- 'pkg/ge-additions/**'
|
|
||||||
- 'pkg/libaes_siv/**'
|
|
||||||
- 'pkg/urbit/**'
|
|
||||||
- 'pkg/urcrypt/**'
|
|
||||||
- 'tests/**'
|
|
||||||
- 'bin/**'
|
|
||||||
- 'nix/**'
|
|
||||||
- 'default.nix'
|
|
||||||
- 'vere-version'
|
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- '.github/workflows/build.yml'
|
- '.github/workflows/feature.yml'
|
||||||
|
- '.github/workflows/develop.yml'
|
||||||
|
- '.github/workflows/release.yml'
|
||||||
|
- '.github/workflows/master.yml'
|
||||||
- '.github/workflows/vere.yml'
|
- '.github/workflows/vere.yml'
|
||||||
- 'pkg/arvo/**'
|
- 'pkg/arvo/**'
|
||||||
- 'pkg/docker-image/**'
|
- 'pkg/docker-image/**'
|
||||||
@ -32,13 +19,12 @@ on:
|
|||||||
- 'bin/**'
|
- 'bin/**'
|
||||||
- 'nix/**'
|
- 'nix/**'
|
||||||
- 'default.nix'
|
- 'default.nix'
|
||||||
- 'vere-version'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
call-vere:
|
call-vere:
|
||||||
uses: ./.github/workflows/vere.yml
|
uses: ./.github/workflows/vere.yml
|
||||||
with:
|
with:
|
||||||
pace: 'edge' # XX s/b once?
|
pace: 'edge'
|
||||||
upload: >-
|
upload: >-
|
||||||
${{
|
${{
|
||||||
(github.ref_name == 'next/vere' && github.ref_type == 'branch')
|
(github.ref_name == 'next/vere' && github.ref_type == 'branch')
|
34
.github/workflows/master.yml
vendored
Normal file
34
.github/workflows/master.yml
vendored
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
name: Push to master
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 'master'
|
||||||
|
paths:
|
||||||
|
- '.github/workflows/feature.yml'
|
||||||
|
- '.github/workflows/develop.yml'
|
||||||
|
- '.github/workflows/release.yml'
|
||||||
|
- '.github/workflows/master.yml'
|
||||||
|
- '.github/workflows/vere.yml'
|
||||||
|
- 'pkg/arvo/**'
|
||||||
|
- 'pkg/docker-image/**'
|
||||||
|
- 'pkg/ent/**'
|
||||||
|
- 'pkg/ge-additions/**'
|
||||||
|
- 'pkg/libaes_siv/**'
|
||||||
|
- 'pkg/urbit/**'
|
||||||
|
- 'pkg/urcrypt/**'
|
||||||
|
- 'tests/**'
|
||||||
|
- 'bin/**'
|
||||||
|
- 'nix/**'
|
||||||
|
- 'default.nix'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
call-vere:
|
||||||
|
uses: ./.github/workflows/vere.yml
|
||||||
|
with:
|
||||||
|
pace: 'live'
|
||||||
|
upload: >-
|
||||||
|
${{
|
||||||
|
(github.ref_name == 'next/vere' && github.ref_type == 'branch')
|
||||||
|
}}
|
||||||
|
secrets: inherit
|
34
.github/workflows/release.yml
vendored
Normal file
34
.github/workflows/release.yml
vendored
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
name: Push to release branch
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 'release/*'
|
||||||
|
paths:
|
||||||
|
- '.github/workflows/feature.yml'
|
||||||
|
- '.github/workflows/develop.yml'
|
||||||
|
- '.github/workflows/release.yml'
|
||||||
|
- '.github/workflows/master.yml'
|
||||||
|
- '.github/workflows/vere.yml'
|
||||||
|
- 'pkg/arvo/**'
|
||||||
|
- 'pkg/docker-image/**'
|
||||||
|
- 'pkg/ent/**'
|
||||||
|
- 'pkg/ge-additions/**'
|
||||||
|
- 'pkg/libaes_siv/**'
|
||||||
|
- 'pkg/urbit/**'
|
||||||
|
- 'pkg/urcrypt/**'
|
||||||
|
- 'tests/**'
|
||||||
|
- 'bin/**'
|
||||||
|
- 'nix/**'
|
||||||
|
- 'default.nix'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
call-vere:
|
||||||
|
uses: ./.github/workflows/vere.yml
|
||||||
|
with:
|
||||||
|
pace: 'soon'
|
||||||
|
upload: >-
|
||||||
|
${{
|
||||||
|
(github.ref_name == 'next/vere' && github.ref_type == 'branch')
|
||||||
|
}}
|
||||||
|
secrets: inherit
|
11
.github/workflows/vere.yml
vendored
11
.github/workflows/vere.yml
vendored
@ -39,11 +39,6 @@ on:
|
|||||||
- soon
|
- soon
|
||||||
- live
|
- live
|
||||||
|
|
||||||
env:
|
|
||||||
UPLOAD_BASE: bootstrap.urbit.org/vere
|
|
||||||
VERE_PACE: ${{ inputs.pace }}
|
|
||||||
VERSION_TYPE: ${{ (inputs.pace == 'soon' || inputs.pace == 'live') && 'real' || 'hash' }}
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
urbit:
|
urbit:
|
||||||
strategy:
|
strategy:
|
||||||
@ -78,8 +73,10 @@ jobs:
|
|||||||
name: run urbit-tests
|
name: run urbit-tests
|
||||||
run: |
|
run: |
|
||||||
cp -RL tests pkg/arvo/tests
|
cp -RL tests pkg/arvo/tests
|
||||||
vere="$(cat ./vere-version | sed -e 's/\([^ ]*\) \([^ ]*\)/\1\/\2\/vere-\2/g' | tr -d '\n')"
|
vere=$(curl https://bootstrap.urbit.org/vere/${{ inputs.pace }}/last)
|
||||||
url="$(echo https://bootstrap.urbit.org/vere/${vere}-linux-x86_64)"
|
echo $vere
|
||||||
|
url="$(echo https://bootstrap.urbit.org/vere/${{ inputs.pace }}/v${vere}/vere-v${vere}-linux-x86_64)"
|
||||||
|
echo $url
|
||||||
# put in .jam so it doesn't crash when it gets -A'd in
|
# put in .jam so it doesn't crash when it gets -A'd in
|
||||||
curl -Lo pkg/arvo/vere.jam "$url"
|
curl -Lo pkg/arvo/vere.jam "$url"
|
||||||
chmod +x pkg/arvo/vere.jam
|
chmod +x pkg/arvo/vere.jam
|
||||||
|
Loading…
Reference in New Issue
Block a user