Skip to content

Commit

Permalink
temp remove unrelated jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
gianfra-t committed Jun 7, 2024
1 parent e6bbcc2 commit 3efc90e
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 39 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/ci-dev.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
on:
pull_request:
branches:
- '**' # every branch
- '!main' # excluding main
- 'main'

name: continuous-integration-dev

Expand Down Expand Up @@ -100,10 +99,10 @@ jobs:
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Check Build
if: matrix.rust == 'stable'
run: |
bash ./scripts/cmd-all build check
# - name: Check Build
# if: matrix.rust == 'stable'
# run: |
# bash ./scripts/cmd-all build check

- name: Test
if: matrix.rust == 'nightly'
Expand Down
78 changes: 45 additions & 33 deletions .github/workflows/ci-main.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
on:
pull_request:
branches:
- 'main'
- 'main' # excluding main

name: continuous-integration-main
jobs:
ci:
strategy:
max-parallel: 2
matrix:
rust: [ stable, nightly ]
runs-on: ubuntu-20.04
rust: [ nightly ]
runs-on: ubuntu-latest
env:
RUST_BACKTRACE: full
# Make sure CI fails on all warnings, including Clippy lints
Expand All @@ -33,17 +33,29 @@ jobs:
df -h
- uses: actions/checkout@v2

- name: Install sccache (ubuntu-latest)
if: matrix.os == 'ubuntu-latest'
env:
LINK: https://github.com/mozilla/sccache/releases/download
SCCACHE_VERSION: 0.2.13
run: |
SCCACHE_FILE=sccache-$SCCACHE_VERSION-x86_64-unknown-linux-musl
mkdir -p $HOME/.local/bin
curl -L "$LINK/$SCCACHE_VERSION/$SCCACHE_FILE.tar.gz" | tar xz
mv -f $SCCACHE_FILE/sccache $HOME/.local/bin/sccache
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Install package
run: |
sudo docker image prune --all --force
echo 'APT::Get::Always-Include-Phased-Updates "false";' | sudo tee /etc/apt/apt.conf.d/99-phased-updates
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install -y protobuf-compiler libprotobuf-dev
- name: Setup stable Rust toolchain
if: matrix.rust == 'stable'
# Call `rustup show` as a hack so that the toolchain defined in rust-toolchain.toml is installed
run: rustup show
# - name: Setup stable Rust toolchain
# if: matrix.rust == 'stable'
# # Call `rustup show` as a hack so that the toolchain defined in rust-toolchain.toml is installed
# run: rustup show

- name: Remove rust-toolchain.toml for nightly
if: matrix.rust == 'nightly'
Expand Down Expand Up @@ -75,42 +87,42 @@ jobs:
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Check Build
if: matrix.rust == 'stable'
run: |
bash ./scripts/cmd-all build check
# - name: Check Build
# if: matrix.rust == 'stable'
# run: |
# bash ./scripts/cmd-all build check

- name: Test
if: matrix.rust == 'nightly'
uses: actions-rs/cargo@v1
env:
RUST_LOG: info
SOURCE_STELLAR_SECRET_MAINNET: ${{ secrets.SOURCE_STELLAR_SECRET_MAINNET }}
SOURCE_STELLAR_SECRET_TESTNET: ${{ secrets.SOURCE_STELLAR_SECRET_TESTNET }}
DEST_STELLAR_SECRET_MAINNET: ${{ secrets.DEST_STELLAR_SECRET_MAINNET }}
DEST_STELLAR_SECRET_TESTNET: ${{ secrets.DEST_STELLAR_SECRET_TESTNET }}
# SOURCE_STELLAR_SECRET_MAINNET: ${{ secrets.SOURCE_STELLAR_SECRET_MAINNET }}
# SOURCE_STELLAR_SECRET_TESTNET: ${{ secrets.SOURCE_STELLAR_SECRET_TESTNET }}
# DEST_STELLAR_SECRET_MAINNET: ${{ secrets.DEST_STELLAR_SECRET_MAINNET }}
# DEST_STELLAR_SECRET_TESTNET: ${{ secrets.DEST_STELLAR_SECRET_TESTNET }}
with:
toolchain: nightly-2024-02-09
command: test
args: test_register_vault --all --all-features -- --nocapture

- name: Rustfmt
if: matrix.rust == 'nightly'
uses: actions-rs/cargo@v1
with:
toolchain: nightly-2024-02-09
command: fmt
args: --all -- --check
# - name: Rustfmt
# if: matrix.rust == 'nightly'
# uses: actions-rs/cargo@v1
# with:
# toolchain: nightly-2024-02-09
# command: fmt
# args: --all -- --check

- name: Clippy -- Libraries and Binaries
if: matrix.rust == 'stable'
run: |
bash ./scripts/cmd-all clippy "clippy --lib --bins" "-- -W clippy::all -A clippy::style -A forgetting_copy_types -A forgetting_references"
# - name: Clippy -- Libraries and Binaries
# if: matrix.rust == 'stable'
# run: |
# bash ./scripts/cmd-all clippy "clippy --lib --bins" "-- -W clippy::all -A clippy::style -A forgetting_copy_types -A forgetting_references"

- name: Clippy -- Tests and Examples
if: matrix.rust == 'nightly'
uses: actions-rs/cargo@v1
with:
toolchain: nightly-2024-02-09
command: clippy
args: --all-features --tests --benches --examples -- -A clippy::all -W clippy::correctness -A forgetting_copy_types -A forgetting_references
# - name: Clippy -- Tests and Examples
# if: matrix.rust == 'nightly'
# uses: actions-rs/cargo@v1
# with:
# toolchain: nightly-2024-02-09
# command: clippy
# args: --all-features --tests --benches --examples -- -A clippy::all -W clippy::correctness -A forgetting_copy_types -A forgetting_references

0 comments on commit 3efc90e

Please sign in to comment.