fix: Update adaptive optimization policy to use valid 'default' value #97
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" |