Skip to content

Commit

Permalink
Ci optimise cloud costs (#450)
Browse files Browse the repository at this point in the history
* run on selected branches

* run on ubuntu-latest

* run checker on ubuntu-latest-m

* run on self hosted x64-tiny

* run tests on self-holted but tiny instance

* run for specific branches

* run tests on monster

* run tests on master and release* branches
  • Loading branch information
rjonczy authored Nov 21, 2023
1 parent b5c735f commit 7c3496d
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 20 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,29 @@ name: Cargo Check
on:
pull_request:
branches:
- '*'
- 'master'
- 'develop'
- 'release*'
push:
branches:
- master

- 'master'
- 'develop'
- 'release*'

jobs:
checker:

concurrency:
group: lint-${{ github.ref }}
cancel-in-progress: true

container:
image: paritytech/ci-unified:bullseye-1.71.0-v20230727

runs-on:
- self-hosted
- x64-monster
- x64-tiny

steps:
- uses: actions/checkout@v2

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/hyperspace-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ name: "Build and publish Hyperspace Docker image"
on:
push:
branches:
- '*'
- 'master'
- 'develop'
- 'release*'
tags:
- 'v*'

Expand All @@ -16,9 +18,7 @@ jobs:

name: Build & push docker image

runs-on:
- self-hosted
- x64-monster
runs-on: ubuntu-latest

concurrency:
group: hyperspace-docker-image-${{ github.ref }}
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@ name: Lint
on:
pull_request:
branches:
- '*'
- 'master'
- 'develop'
- 'release*'
push:
branches:
- master
- 'master'
- 'develop'
- 'release*'

jobs:
linters:
Expand All @@ -16,9 +20,7 @@ jobs:
cancel-in-progress: true
container:
image: paritytech/ci-unified:bullseye-1.71.0-v20230727
runs-on:
- self-hosted
- x64-monster
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/parachain-node-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ on:

jobs:
build-and-publish:
runs-on:
- self-hosted
- x64-monster
runs-on: ubuntu-latest
concurrency:
group: parachain-node-docker-image-${{ github.ref }}
cancel-in-progress: true
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
name: Test

on:
pull_request:
branches:
- '*'
push:
branches:
- master
- 'master'
- 'release*'

env:
DEBIAN_FRONTEND: noninteractive
Expand Down

0 comments on commit 7c3496d

Please sign in to comment.