Skip to content

Commit

Permalink
chore: update action versions and stop using actions-rs
Browse files Browse the repository at this point in the history
  • Loading branch information
Tommytrg committed Jul 17, 2024
1 parent e4a2157 commit 176f0db
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 22 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/bridge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ on:
required: false
default: true

env:
CARGO_TERM_COLOR: always

jobs:
Bridge:
runs-on: ubuntu-latest
Expand All @@ -25,6 +28,9 @@ jobs:
sudo apt install -y protobuf-compiler
protoc --version
- name: Show Rust toolchain
run: rustup show

- name: Build witnet-centralized-ethereum-bridge
run: |
cargo build -p witnet-centralized-ethereum-bridge --release
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
tags:
- '*'

env:
CARGO_TERM_COLOR: always

jobs:
#?####################################################################################################?#
#? ?#
Expand Down Expand Up @@ -129,6 +132,9 @@ jobs:
- name: Install Protobuf
run: brew install protobuf

- name: Show Rust toolchain
run: rustup show

# MacOS Build
- name: Building Macos Binary
run: MACOSX_DEPLOYMENT_TARGET=10.14 OPENSSL_STATIC=1 OPENSSL_DIR="/usr/local/opt/openssl" cargo build --release -p witnet -p witnet_toolkit
Expand Down Expand Up @@ -163,6 +169,7 @@ jobs:
vcpkg.exe install openssl:x64-windows-static
vcpkg.exe integrate install
# Windows Build
- name: Build Windows
run: |
Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/midnight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,19 @@ on:
schedule:
- cron: '0 0 * * *'

env:
CARGO_TERM_COLOR: always

jobs:
deps_audit:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4

- name: Cargo dependencies security audit
uses: actions-rs/audit-check@v1
uses: rustsec/audit-check@v1.4.1
with:
token: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -22,13 +25,15 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4

- name: Install Just command runner
uses: taiki-e/install-action@just

- name: Install environment dependencies
run: |
sudo apt-get update -y -qq
sudo apt-get install -y g++-9 cmake libcurl4-openssl-dev libelf-dev libdw-dev cmake gcc binutils-dev protobuf-compiler librocksdb-dev
just || curl -LSfs https://japaric.github.io/trust/install.sh | sh -s -- --git casey/just --target x86_64-unknown-linux-musl --to ~/.cargo/bin
- name: Load persistent storage
run: |
Expand Down
30 changes: 12 additions & 18 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Check on every push

on: [push, pull_request]

env:
CARGO_TERM_COLOR: always

jobs:
build_ubuntu:

Expand All @@ -24,7 +27,7 @@ jobs:
LD_LIBRARY_PATH: /usr/local/lib

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4

# Ensure some subcrate versions match that of the main crate
- uses: ./.github/actions/versions-match
Expand All @@ -48,17 +51,14 @@ jobs:
with:
subcrate: bridges/centralized-ethereum

- uses: actions-rs/toolchain@v1
with:
toolchain: stable
default: true
components: rustfmt, clippy
- name: Show Rust toolchain
run: rustup show

- name: Install Just command runner
uses: taiki-e/install-action@just

- name: Formatter
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
run: just fmt

- name: Install compilation system dependencies
run: |
Expand All @@ -74,16 +74,10 @@ jobs:
sudo make install-shared
- name: Clippy
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all --all-targets --all-features -- ${{ env.CLIPPY_LINTS }} -A clippy::many-single-char-names
run: just clippy

- name: Test
uses: actions-rs/cargo@v1
with:
command: test
args: --all --verbose
run: cargo test --all --verbose

# This is used to ensure that Cargo.lock is up to date
- name: Check for unstaged files
Expand Down

0 comments on commit 176f0db

Please sign in to comment.