Make set_hostname function available to libazureinit consumers (#247) #943
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: "Run CI" | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| build-test: | |
| name: Build and test azure-init | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| rust-toolchain: [stable, stable 12 months ago] | |
| steps: | |
| - name: Install libudev | |
| run: | | |
| sudo apt update | |
| sudo apt install -y libudev-dev | |
| - uses: actions/checkout@v5 | |
| - uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: ${{matrix.rust-toolchain}} | |
| components: clippy, rustfmt | |
| - name: Rustfmt Check | |
| run: cargo fmt --all --check | |
| - name: Build azure-init | |
| run: cargo build --verbose | |
| - name: Run unit tests | |
| run: cargo test --verbose --all-features --workspace | |
| - name: Run clippy | |
| run: cargo clippy --verbose -- --deny warnings |