|
| 1 | +name: Rust |
| 2 | + |
| 3 | +concurrency: |
| 4 | + group: Rust-${{ github.workflow }}-${{ github.ref }} |
| 5 | + cancel-in-progress: true |
| 6 | + |
| 7 | +permissions: |
| 8 | + security-events: write |
| 9 | + |
| 10 | +on: |
| 11 | + workflow_dispatch: |
| 12 | + push: |
| 13 | + branches: [Current] |
| 14 | + pull_request: |
| 15 | + branches: [Current] |
| 16 | + workflow_call: |
| 17 | + |
| 18 | +jobs: |
| 19 | + Build: |
| 20 | + runs-on: ubuntu-latest |
| 21 | + |
| 22 | + env: |
| 23 | + ADBLOCK: true |
| 24 | + ASTRO_TELEMETRY_DISABLED: 1 |
| 25 | + AUTOMATEDLAB_TELEMETRY_OPTOUT: 1 |
| 26 | + AZURE_CORE_COLLECT_TELEMETRY: 0 |
| 27 | + CHOOSENIM_NO_ANALYTICS: 1 |
| 28 | + DIEZ_DO_NOT_TRACK: 1 |
| 29 | + DO_NOT_TRACK: 1 |
| 30 | + DOTNET_CLI_TELEMETRY_OPTOUT: 1 |
| 31 | + DOTNET_INTERACTIVE_CLI_TELEMETRY_OPTOUT: 1 |
| 32 | + ET_NO_TELEMETRY: 1 |
| 33 | + GATSBY_TELEMETRY_DISABLED: 1 |
| 34 | + GATSBY_TELEMETRY_OPT_OUT: 1 |
| 35 | + GATSBY_TELEMETRY_OPTOUT: 1 |
| 36 | + GRIT_TELEMETRY_DISABLED: 1 |
| 37 | + HASURA_GRAPHQL_ENABLE_TELEMETRY: false |
| 38 | + HINT_TELEMETRY: off |
| 39 | + HOMEBREW_NO_ANALYTICS: 1 |
| 40 | + INFLUXD_REPORTING_DISABLED: true |
| 41 | + ITERATIVE_DO_NOT_TRACK: 1 |
| 42 | + NEXT_TELEMETRY_DEBUG: 1 |
| 43 | + NEXT_TELEMETRY_DISABLED: 1 |
| 44 | + NG_CLI_ANALYTICS: false |
| 45 | + NUXT_TELEMETRY_DISABLED: 1 |
| 46 | + PIN_DO_NOT_TRACK: 1 |
| 47 | + POWERSHELL_TELEMETRY_OPTOUT: 1 |
| 48 | + SAM_CLI_TELEMETRY: 0 |
| 49 | + STNOUPGRADE: 1 |
| 50 | + STRIPE_CLI_TELEMETRY_OPTOUT: 1 |
| 51 | + TELEMETRY_DISABLED: 1 |
| 52 | + TERRAFORM_TELEMETRY: 0 |
| 53 | + VCPKG_DISABLE_METRICS: 1 |
| 54 | + |
| 55 | + strategy: |
| 56 | + matrix: |
| 57 | + toolchain: ["stable", "nightly"] |
| 58 | + |
| 59 | + steps: |
| 60 | + - uses: actions/checkout@v4.2.2 |
| 61 | + |
| 62 | + - uses: actions-rs/toolchain@v1.0.7 |
| 63 | + with: |
| 64 | + profile: minimal |
| 65 | + toolchain: ${{ matrix.toolchain }} |
| 66 | + |
| 67 | + - uses: actions/cache@v4.2.3 |
| 68 | + with: |
| 69 | + path: | |
| 70 | + ~/.cargo/bin/ |
| 71 | + ~/.cargo/registry/index/ |
| 72 | + ~/.cargo/registry/cache/ |
| 73 | + ~/.cargo/git/db/ |
| 74 | + target/ |
| 75 | + Target/ |
| 76 | + key: ${{ runner.os }}-cargo-${{ hashFiles('./Cargo.toml') }} |
| 77 | + - uses: actions-rs/cargo@v1.0.3 |
| 78 | + with: |
| 79 | + command: build |
| 80 | + args: --release --all-features --manifest-path ./Cargo.toml |
0 commit comments