Skip to content

Commit

Permalink
add new runner (#333)
Browse files Browse the repository at this point in the history
Co-authored-by: Jimmy <jimmy@findora.org>
  • Loading branch information
tiannian and jimmysun0815 authored Jun 9, 2022
1 parent 930bdb0 commit c0d004e
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 16 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/Develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
build:
strategy:
matrix:
platform: [aws]
platform: [scalable]
runs-on: ${{ matrix.platform }}
env:
ENV: dev
Expand Down Expand Up @@ -51,18 +51,29 @@ jobs:
# shell: bash
# run: |
# mkdir $(pwd)/opt && cd $(pwd)/opt && wget https://golang.google.cn/dl/go1.15.7.linux-amd64.tar.gz && tar -xpf go1.15.7.linux-amd64.tar.gz && echo "$(pwd)/go/bin" >> $GITHUB_PATH

# remove the test code in develop build
# run tests
# - name: lint
# shell: bash
# run: |
# make lint

# - name: test
# shell: bash
# run: |
# make test

# - name: evm test
# shell: bash
# run: |
# make evmtest

- name: Prepare key
shell: bash
run: |
tar -C ~/.ssh -zcf key.tar.gz ./
- name: Clean garbage containers and images
shell: bash
run: |
Expand Down Expand Up @@ -114,7 +125,7 @@ jobs:
shell: bash
run: |
aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin ${PUBLIC_ECR_URL}
- name: Push images
env:
PRIVATE_ECR_URL: ${{ env.PRIVATE_ECR_URL }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Features.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
build:
strategy:
matrix:
platform: [aws]
platform: [scalable]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/Main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
build:
strategy:
matrix:
platform: [aws]
platform: [scalable]
runs-on: ${{ matrix.platform }}
env:
ENV: dev
Expand Down Expand Up @@ -61,6 +61,12 @@ jobs:
# shell: bash
# run: |
# make build

# - name: evm test
# shell: bash
# run: |
# make evmtest

- name: Prepare key
shell: bash
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Others.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
build:
strategy:
matrix:
platform: [aws]
platform: [scalable]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
build:
strategy:
matrix:
platform: [aws]
platform: [scalable]
runs-on: ${{ matrix.platform }}
env:
ENV: release
Expand Down Expand Up @@ -48,24 +48,27 @@ jobs:
# shell: bash
# run: |
# mkdir $(pwd)/opt && cd $(pwd)/opt && wget https://golang.google.cn/dl/go1.15.7.linux-amd64.tar.gz && tar -xpf go1.15.7.linux-amd64.tar.gz && echo "$(pwd)/go/bin" >> $GITHUB_PATH
# # run tests
# - name: lint
# shell: bash
# run: |
# make lint

# - name: test
# shell: bash
# run: |
# make test
# - name: Build
# env:
# DBG: true

# - name: evm test
# shell: bash
# run: |
# make build
# make evmtest

- name: Prepare key
shell: bash
run: |
tar -C ~/.ssh -zcf key.tar.gz ./
- name: Clean garbage containers and images
shell: bash
run: |
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/WasmCat.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
name: Wasm Building And Pushing
on:
push:
branches: ['**_wasm']
on: [push]

jobs:
build-push:
Expand Down
6 changes: 3 additions & 3 deletions container/Dockerfile-binary-image-dev
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ RUN rustup toolchain install stable && \
RUN mkdir /binary
RUN mkdir -p /binary/cleveldb && mkdir -p /binary/goleveldb

RUN make fmt
RUN make lint
RUN make test
# RUN make fmt
# RUN make lint
# RUN make test

RUN mkdir -p /root/.cargo/bin/ && \
DBG=true make build && \
Expand Down

0 comments on commit c0d004e

Please sign in to comment.