Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: Update adaptive optimization policy to use valid 'default' value #97

fix: Update adaptive optimization policy to use valid 'default' value

fix: Update adaptive optimization policy to use valid 'default' value #97

Workflow file for this run

name: XPU CI/CD Pipeline
on:
push:
branches:
- main
- github-actions-setup
- xpu-update
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Lint
run: |
rustup component add clippy
cargo clippy -- -D warnings
- name: Check formatting
run: |
rustup component add rustfmt
cargo fmt -- --check
deploy:
needs: build
runs-on: ubuntu-latest
if: github.event_name == 'pull_request' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/xpu-update'
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build release
run: cargo build --release
- name: Deploy (placeholder)
run: |
echo "Deploying to production server..."
# Add actual deployment steps here
# This could involve copying binaries to a server, updating a container, etc.
echo "Deployment complete"