Skip to content

Commit

Permalink
id
Browse files Browse the repository at this point in the history
ohoho

almost

up header

cw

fixed jobs

hoho

fixed ci

fmt

clean
  • Loading branch information
dzmitry-lahoda committed Jul 13, 2023
1 parent cdccfac commit 580aa50
Show file tree
Hide file tree
Showing 26 changed files with 861 additions and 263 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: Update benchmarks weights
name: benchmark

on:
workflow_dispatch:
# Benchmarks run on the main repo branches only.
pull_request:
types: [labeled]
branches:
Expand All @@ -13,8 +12,8 @@ env:
CACHIX_COMPOSABLE: composable-community

jobs:
update_benchmarks_weights:
name: Update benchmarks weights
update-benchmarks-weights:
name: update-benchmarks-weights
runs-on:
- self-hosted
- bmark
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -476,8 +476,8 @@ jobs:
push-docker-images:
name: push-docker-images
if: ${{ inputs.github_event_name == 'push' || (inputs.github_event_name == 'pull_request' && inputs.github_event_pull_request_head_repo_id == 383289760) }}
# needs:
# - draft-release-check
needs:
- draft-release-check
runs-on:
- x86_64-linux-32C-128GB-2TB
concurrency:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "build-test-deploy-flaky"
name: "release-docs"
on:
push:
branches:
Expand All @@ -25,93 +25,7 @@ env:
DOCKER_USER_OPTION: '$UID:$GID'

jobs:
test-subsquid:
name: test-subsquid [FLAKY]
strategy:
matrix:
arch: [x64-cute]
runs-on:
- self-hosted
- ${{ matrix.arch }}
concurrency:
group: ${{ github.workflow }}-test-subsquid-${{ matrix.arch }}-${{ github.event.pull_request.title }}
cancel-in-progress: true
steps:
- name: Set up Nix
uses: cachix/install-nix-action@daddc62a2e67d1decb56e028c9fa68344b9b7c2a # v18
with:
install_url: https://releases.nixos.org/nix/${{ env.NIX_VERSION }}/install
nix_path: nixpkgs=channel:${{ env.NIXPKGS_CHANNEL }}
extra_nix_config: |
sandbox = relaxed
narinfo-cache-negative-ttl = 0
system-features = kvm
- name: Set up Cachix
uses: cachix/cachix-action@298387a7aea14d6564aa5d6ead79272878339c8b # v12
with:
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
name: ${{ env.CACHIX_NAME }}
- name: Add tools needed for non-nix steps
run: |
nix-channel --add https://nixos.org/channels/${{ env.NIXPKGS_CHANNEL }} nixpkgs
nix-channel --update
nix-env -iA nixpkgs.cachix nixpkgs.nodejs nixpkgs.git nixpkgs.git-lfs nixpkgs.tree nixpkgs.docker nixpkgs.coreutils nixpkgs.gnumake nixpkgs.python311 nixpkgs.gcc
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
persist-credentials: false
- name: Setup jest
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install dependencies
run: npm ci
working-directory: subsquid
- name: Run tests
run: npm run test
working-directory: subsquid

package-subsquid-processor:
name: package-subsquid-processor [FLAKY]
needs:
- test-subsquid
strategy:
matrix:
arch: [x64-cute]
runs-on:
- self-hosted
- ${{ matrix.arch }}
concurrency:
group: ${{ github.workflow }}-package-subsquid-processor-${{ matrix.arch }}-${{ github.event.pull_request.title }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
persist-credentials: false
- name: Log INFO commit sha
run: |
echo "GITHUB_SHA=${GITHUB_SHA} github.sha=${{ github.sha }}"
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
tags: |
${{ env.DOCKER_REGISTRY_NAME }}/subsquid-processor:latest
${{ env.DOCKER_REGISTRY_NAME }}/subsquid-processor:${{ github.sha }}
context: subsquid
# do release flow
push: ${{ github.event_name == 'push' && github.ref_name == 'main' }}

# this is not flaky!!!
deploy-docs:
name: "deploy-docs"
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions code/parachain/frame/assets/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ Abstraction over a fungible multi-currency system.
A fungible multi-currency system whose accounts can have liquidity restrictions.
- [MultiReservableCurrency](https://docs.rs/orml-traits/latest/orml_traits/currency/trait.MultiReservableCurrency.html):
A fungible multi-currency system where a user can reserve funds.
- `frame_support::traits::tokens::fungibles::{MutateHold, *}`


### Workflows

Expand Down
Loading

0 comments on commit 580aa50

Please sign in to comment.