Skip to content

Commit e5702b7

Browse files
committed
fix indentation
1 parent a0abd04 commit e5702b7

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

.github/workflows/build.yml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -162,31 +162,31 @@ jobs:
162162
with:
163163
image: ${{ inputs.docker }}
164164
options: '--user 0:0 -v ${{ github.workspace }}/.cargo-cache/git/db:/usr/local/cargo/git/db -v ${{ github.workspace }}/.cargo/registry/cache:/usr/local/cargo/registry/cache -v ${{ github.workspace }}/.cargo/registry/index:/usr/local/cargo/registry/index -v ${{ github.workspace }}:/build -w /build'
165-
run: |
166-
# Update and install required packages
167-
sudo apt-get update
168-
sudo apt-get install -y llvm-dev clang libclang-dev gcc-multilib
165+
run: |
166+
# Update and install required packages
167+
sudo apt-get update
168+
sudo apt-get install -y llvm-dev clang libclang-dev gcc-multilib
169169
170-
# Install Rust minimal toolchain
171-
curl --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal
172-
export PATH="$HOME/.cargo/bin:$PATH"
170+
# Install Rust minimal toolchain
171+
curl --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal
172+
export PATH="$HOME/.cargo/bin:$PATH"
173173
174-
# Add necessary Rust targets and components
175-
rustup component add llvm-tools-preview || true
176-
rustup target add x86_64-unknown-linux-gnu
174+
# Add necessary Rust targets and components
175+
rustup component add llvm-tools-preview || true
176+
rustup target add x86_64-unknown-linux-gnu
177177
178-
# Create and activate Python virtual environment
179-
python3 -m venv .env
180-
. .env/bin/activate && pip install -r requirements.txt
181-
. .env/bin/activate && pip install patchelf
178+
# Create and activate Python virtual environment
179+
python3 -m venv .env
180+
. .env/bin/activate && pip install -r requirements.txt
181+
. .env/bin/activate && pip install patchelf
182182
183-
if [ "${{ inputs.publish }}" = 'true' ]; then
184-
echo "~~~~ maturin publishing"
185-
. .env/bin/activate && maturin publish --target ${{ inputs.target }} --no-sdist --skip-existing -i python3.12 -u __token__ -p ${{ secrets.MATURIN_PASSWORD }}
186-
else
187-
echo "~~~~ maturin building"
188-
. .env/bin/activate && maturin build --target ${{ inputs.target }}
189-
fi
183+
if [ "${{ inputs.publish }}" = 'true' ]; then
184+
echo "~~~~ maturin publishing"
185+
. .env/bin/activate && maturin publish --target ${{ inputs.target }} --no-sdist --skip-existing -i python3.12 -u __token__ -p ${{ secrets.MATURIN_PASSWORD }}
186+
else
187+
echo "~~~~ maturin building"
188+
. .env/bin/activate && maturin build --target ${{ inputs.target }}
189+
fi
190190
191191
- name: Build Python Extension Module (non-docker)
192192
if: ${{ inputs.publish != true && !inputs.docker && !contains(inputs.target,'android') }}

0 commit comments

Comments
 (0)