Skip to content

Commit

Permalink
Add prep action for common Ubuntu steps.
Browse files Browse the repository at this point in the history
+Add myself to codeowners
  • Loading branch information
gpmayorga committed Sep 15, 2023
1 parent 949dbeb commit 934145d
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
# Centrifudge Code Owners

## Changes to .github
.github/* @mikiquantum @mustermeiszer @branan @NunoAlexandre

.github/* @mustermeiszer @branan @NunoAlexandre
.github/workflows @gpmayorga
## Changes to ci
ci/* @mikiquantum @mustermeiszer @branan @NunoAlexandre
ci/* @mustermeiszer @branan @NunoAlexandre

## Changes to the service of our chain.
node/* @mikiquantum @mustermeiszer @branan @NunoAlexandre
node/* @mustermeiszer @branan @NunoAlexandre

## Changes to chain-specs
node/res/* @mikiquantum @mustermeiszer @branan @NunoAlexandre @wischli
node/res/* @mustermeiszer @branan @NunoAlexandre @wischli

## Changes to toml files
*.toml @mikiquantum @mustermeiszer @branan @NunoAlexandre @lemunozm @wischli @cdamian @thea-leake
*.toml @mustermeiszer @branan @NunoAlexandre @lemunozm @wischli @cdamian @thea-leake

## Changes to specific pallets
pallets/liquidity-pools/* @NunoAlexandre @cdamian @wischli @mustermeiszer
Expand Down Expand Up @@ -41,9 +41,9 @@ libs/traits/src/changes.rs @lemunozm
libs/traits/src/data.rs @lemunozm

## Changes to runtime
runtime/common/* @branan @mikiquantum @mustermeiszer @NunoAlexandre @offerijns @lemunozm
runtime/altair/* @branan @mikiquantum @mustermeiszer @NunoAlexandre @offerijns @wischli
runtime/centrifuge/* @branan @mikiquantum @mustermeiszer @NunoAlexandre @offerijns @wischli
runtime/common/* @branan @mustermeiszer @NunoAlexandre @offerijns @lemunozm
runtime/altair/* @branan @mustermeiszer @NunoAlexandre @offerijns @wischli
runtime/centrifuge/* @branan @mustermeiszer @NunoAlexandre @offerijns @wischli

## Changes to integration tests
runtime/integration-tests/* @mustermeiszer @NunoAlexandre @wischli @cdamian
Expand Down
49 changes: 49 additions & 0 deletions .github/actions/prep-ubuntu/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Prepare Ubuntu for Rust builds
description: cleanup and Rust Tools setup
inputs:
RUST_TOOLCHAIN:
description: toolchain version
default: "1.66"
cache:
description: cache type (enabled if set)
default: "disabled"
GWIP:
description: "Google Workload identity provider"
default: ''
GSA:
description: "Google Service Account"
default: ''
runs:
using: composite
steps:
- name: Prep build on Ubuntu
id: ubuntu_prep
shell: sh
run: |
echo "Pre cleanup"
df -h
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
echo "Post cleanup"
df -h
sudo apt-get install protobuf-compiler
- name: Install latest nightly
uses: actions-rs/toolchain@88dc2356392166efad76775c878094f4e83ff746
with:
toolchain: ${{ inputs.RUST_TOOLCHAIN }}
default: true

- name: SCcache setup
if: ${{ inputs.cache == 'enabled' }}
uses: ./.github/actions/sccache-gcloud
with:
GWIP: ${{ inputs.GWIP }}
GSA: ${{ inputs.GSA }}

- name: setup Rust sccache wrapper
if: ${{ inputs.cache == 'enabled' }}
shell: sh
run: echo "RUSTC_WRAPPER="sccache"" >> $GITHUB_ENV


0 comments on commit 934145d

Please sign in to comment.