Skip to content

Commit

Permalink
fix(ci): unnecessary configuration def
Browse files Browse the repository at this point in the history
  • Loading branch information
JordyRo1 committed Mar 3, 2025
1 parent c950939 commit d7b46d9
Showing 1 changed file with 19 additions and 42 deletions.
61 changes: 19 additions & 42 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,25 @@ jobs:
with:
token: ${{ github.token }}

- name: Install Rust
- name: Install Rust (simplified for act)
if: ${{ env.ACT }}
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source "$HOME/.cargo/env"
# Install the specific toolchain version from rust-toolchain.toml if it exists
if [ -f "rust-toolchain.toml" ]; then
TOOLCHAIN=$(grep -oP 'channel\s*=\s*"\K[^"]+' rust-toolchain.toml || echo "stable")
rustup toolchain install $TOOLCHAIN
rustup default $TOOLCHAIN
else
rustup default stable
fi
rustup component add rustfmt clippy
- name: Install Rust (GitHub Actions)
if: ${{ !env.ACT }}
uses: actions-rs/toolchain@v1
with:
profile: minimal
Expand Down Expand Up @@ -49,47 +67,6 @@ jobs:
run: |
git clone --depth 1 --branch v0.7.2 https://github.com/0xPolygonMiden/miden-node.git miden-node
- name: Create Miden Node Config Files
run: |
# Create node config file
cat > miden-node.toml << EOF
# Node configuration
[node]
# Node data directory
data_dir = "./data"
# RPC configuration
[rpc]
# RPC server address
address = "0.0.0.0:57291"
# Block producer configuration
[block_producer]
# Enable block production
enabled = true
# Block production interval in milliseconds
interval = 10000
# Store configuration
[store]
# Store type (sqlite or postgres)
type = "sqlite"
# Store connection string
connection = "./data/miden.db"
EOF
# Create genesis config file
cat > genesis.toml << EOF
# Genesis configuration
[genesis]
# Genesis timestamp
timestamp = 0
# Genesis chain ID
chain_id = 1
# Genesis block number
block_number = 0
EOF
- name: Build Miden Node Docker Image
run: |
cd miden-node
Expand Down

0 comments on commit d7b46d9

Please sign in to comment.