microsoft/qdk

Public

mirrored fromhttps://github.com/microsoft/qdkAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
joaoboechat/test-get-azdo-userid

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

.github/workflows/multiplat.yml

81lines · modecode

1name: Multiplatform Build and Test
2
3on:
4 push:
5 branches:
6 - main
7 - "feature/**"
8 - "release/**"
9 workflow_dispatch:
10
11env:
12 CARGO_TERM_COLOR: always
13 NODE_VERSION: "22.14.0"
14 PYTHON_VERSION: "3.11"
15 RUST_TOOLCHAIN_VERSION: "1.93"
16 RUST_TOOLCHAIN_COMPONENTS: rustfmt clippy
17
18jobs:
19 build-and-test-all-platforms:
20 name: Build and Test (All Platforms)
21 strategy:
22 matrix:
23 platform: [ubuntu-latest, windows-latest, macos-latest]
24 runs-on: ${{ matrix.platform }}
25 permissions:
26 issues: write
27 steps:
28 - uses: actions/checkout@v6
29 with:
30 submodules: "true"
31 - name: Setup rust toolchain
32 uses: ./.github/actions/toolchains/rust
33 with:
34 toolchain: ${{ env.RUST_TOOLCHAIN_VERSION }}
35 components: ${{ env.RUST_TOOLCHAIN_COMPONENTS }}
36 - uses: actions/setup-python@v6
37 with:
38 python-version: ${{ env.PYTHON_VERSION }}
39 - uses: actions/setup-node@v6
40 with:
41 node-version: ${{ env.NODE_VERSION }}
42 - uses: actions/cache@v4
43 with:
44 path: |
45 ~/.cargo/bin/
46 ~/.cargo/registry/index/
47 ~/.cargo/registry/cache/
48 ~/.cargo/git/db/
49 target/
50 key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
51 - name: Prereqs
52 run: python ./prereqs.py --install
53 - name:
54 Build and Test
55 # we use xvfb-run to provide a virtual framebuffer for the VS Code tester,
56 # which requires a display to run
57 run: xvfb-run -a python ./build.py --integration-tests
58 if: runner.os == 'Linux'
59 - name: Build and Test
60 run: python ./build.py --integration-tests
61 if: runner.os != 'Linux'
62 - name: File issue on failure
63 if: ${{ failure() && github.event_name != 'workflow_dispatch' }}
64 id: create-issue
65 shell: bash
66 env:
67 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
68 WORKFLOW_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
69 run: |
70 url="$(gh issue create \
71 --title "CI failure: ${{ matrix.platform }} (${{ github.run_id }})" \
72 --body "See the corresponding [**workflow run**](${{ env.WORKFLOW_RUN_URL }}) for failure details, update the issue with any relevant information, and assign to the appropriate team member(s)." \
73 --label ci_failure \
74 --assignee swernli,idavis,minestarks,billti)"
75 number="$(gh issue view "$url" --json number --jq .number)"
76 echo "url=$url" >> "$GITHUB_OUTPUT"
77 echo "number=$number" >> "$GITHUB_OUTPUT"
78 - name: "If Fuzzing Failed: Log Issue Info"
79 if: ${{ failure() && github.event_name != 'workflow_dispatch' }}
80 run: |
81 echo "Created issue #${{ steps.create-issue.outputs.number }} ${{ steps.create-issue.outputs.url }}"
82