Bump clap from 4.5.54 to 4.5.56 #197
Workflow file for this run
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: Rust | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| ubuntu-build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| target: [x86_64-unknown-linux-gnu, aarch64-unknown-linux-musl, x86_64-pc-windows-gnu] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Cache dependencies | |
| uses: Swatinem/rust-cache@v2.7.3 | |
| - name: Build for ${{ matrix.target }} | |
| if: matrix.target != 'x86_64-unknown-linux-gnu' | |
| uses: actions-rs/cargo@v1 | |
| with: | |
| use-cross: true | |
| command: build | |
| args: --all --release --target=${{ matrix.target }} | |
| - name: Build for ${{ matrix.target }} | |
| if: matrix.target == 'x86_64-unknown-linux-gnu' | |
| run: cargo build --release --verbose | |
| - name: Run tests | |
| run: cargo test --release | |
| - name: Copy build | |
| run: find target -type f -name 'cloudflareddns' -or -name 'cloudflareddns.exe' | xargs -I '{}' mv '{}' . | |
| - name: Run UPX | |
| uses: crazy-max/ghaction-upx@v3 | |
| with: | |
| version: latest | |
| files: cloudflareddns* | |
| args: -fq --ultra-brute | |
| - name: Artefacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: cloudflareddns-${{ matrix.target }} | |
| compression-level: 9 | |
| path: | | |
| LICENSE | |
| README.md | |
| config.ini.example | |
| cloudflare* | |
| macos-arm64-build: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Cache dependencies | |
| uses: Swatinem/rust-cache@v2.7.3 | |
| - name: Build | |
| run: cargo build --release --verbose | |
| - name: Run tests | |
| run: cargo test --release | |
| - name: Copy build | |
| run: find target -type f -name 'cloudflareddns' | xargs -I '{}' mv '{}' . | |
| # - name: Run UPX | |
| # run: | | |
| # brew install upx | |
| # upx -fq --ultra-brute cloudflareddns | |
| # Error: upx has been disabled because it is crashing for macOS Ventura or above! It was disabled on 2024-09-05 | |
| - name: Artefacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: cloudflareddns-${{ runner.os }}-${{ runner.arch }} | |
| compression-level: 9 | |
| path: | | |
| LICENSE | |
| README.md | |
| config.ini.example | |
| cloudflare* |