Skip to content

Commit 720c192

Browse files
committed
GitHub Windows Arm runner LP
1 parent aca1910 commit 720c192

File tree

3 files changed

+28
-15
lines changed

3 files changed

+28
-15
lines changed
82 KB
Loading

content/learning-paths/laptops-and-desktops/gh-arm-runners-win/automate-win-app.md

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -37,22 +37,35 @@ This GitHub Actions workflow [`msbuild.yml`](https://github.com/odincodeshen/Spi
3737

3838
Below is an explanation of the steps in the workflow:
3939

40-
**Trigger Events**: The workflow runs when there is a push or pull_request event on the main branch.
41-
**Job Definition**: A single job named build is defined. It runs on the GitHub Arm-hosted Windows runner (`windows-11-arm`) as shown:
40+
41+
**Trigger Events**: The workflow runs when there is a push or pull_request event on the main branch.
42+
43+
**Job Definition**: A single job named build is defined. It runs on the GitHub Arm-hosted Windows runner (`windows-11-arm`) as shown:
44+
4245
```console
4346
jobs:
4447
build:
4548
runs-on: windows-11-arm
4649
```
47-
**Checkout Repository**: Uses the `actions/checkout@v4` action to fetch the code.
48-
**Add MSBuild to PATH**: Adds MSBuild tools for the build process using `microsoft/[email protected]`.
49-
**Restore Dependencies**: Runs `nuget restore` to restore NuGet packages required by the solution.
50-
**Create Download Directory**: Creates a directory to store downloaded files and verifies the Python version.
51-
**Download ARM Performance Libraries**: Downloads the Windows installer for ARM Performance Libraries (APL) and verifies the downloaded files.
52-
**Install ARM Performance Libraries**: Installs the downloaded ARM Performance Libraries using `msiexec.exe` with a quiet mode and logs the process.
53-
**Check Installation Success**: Verifies the success of the APL installation by checking the exit code and logs.
54-
**Build the Solution**: Runs MSBuild to build the solution with the specified configuration (Debug) and platform (ARM64).
55-
**Upload Build Artifact**: Uploads the built executable as an artifact using `actions/upload-artifact@v4`.
56-
57-
This workflow automates the process of dependency management, environment setup, building your Windows on Arm project, and storing the final artifact all using GitHub Arm-hosted runner.
50+
**Checkout Repository**: Uses the `actions/checkout@v4` action to fetch the code.
51+
52+
**Add MSBuild to PATH**: Adds MSBuild tools for the build process using `microsoft/[email protected]`.
53+
54+
**Restore Dependencies**: Runs `nuget restore` to restore NuGet packages required by the solution.
55+
56+
**Create Download Directory**: Creates a directory to store downloaded files and verifies the Python version.
57+
58+
**Download ARM Performance Libraries**: Downloads the Windows installer for ARM Performance Libraries (APL) and verifies the downloaded files.
59+
60+
**Install ARM Performance Libraries**: Installs the downloaded ARM Performance Libraries using `msiexec.exe` with a quiet mode and logs the process.
61+
62+
**Check Installation Success**: Verifies the success of the APL installation by checking the exit code and logs.
63+
64+
**Build the Solution**: Runs MSBuild to build the solution with the specified configuration (Debug) and platform (ARM64).
65+
66+
**Upload Build Artifact**: Uploads the built executable as an artifact using `actions/upload-artifact@v4`.
67+
68+
This workflow automates the process of dependency management, environment setup, building your Windows on Arm project, and storing the final artifact all using GitHub Arm-hosted runner. You can view the `Actions` logs on the repository for each step.
69+
![action #center](_images/actions.png)
5870

71+
You have successfully built your Windows application and uploaded the application as an artifact of your workflow using the GitHub Arm-hosted Windows runner.

content/learning-paths/laptops-and-desktops/gh-arm-runners-win/introduction.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Runners are the machines that execute jobs in a GitHub Actions workflow. An Arm-
1414

1515
Arm-hosted runners are available for public repositories at no cost, subject to [standard usage limits](https://docs.github.com/en/actions/administering-github-actions/usage-limits-billing-and-administration#usage-limits).
1616

17-
### How to Use GitHub Arm-hosted Windows Runners
17+
### How to use GitHub Arm-hosted Windows Runners?
1818

1919
To leverage the GitHub Windows Arm64 hosted runners, you will need to use the following label in your public repository workflow runs:
2020

@@ -51,7 +51,7 @@ Select the size of the large runner you need and and click `Save`.
5151

5252
![specifications #center](_images/size.png)
5353

54-
The `Capacity` section includes the maximum concurrency, which is the number of jobs to run at the same time. Specify at least two for this Learning Path.
54+
The `Capacity` section includes the maximum concurrency, which is the number of jobs to run at the same time.
5555

5656
You can also set the runner group for this runner. The runner group controls the settings for this runner. Pay attention to the runner group as you may need to return to the runner group settings if any configuration changes are needed.
5757

0 commit comments

Comments
 (0)