Skip to content

Commit 2bbfc76

Browse files
committed
Add Architecture only example
1 parent 5984462 commit 2bbfc76

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

README.md

+21-2
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,28 @@ jobs:
7474
- run: npm test
7575
```
7676

77-
Operating Systems and Architecture:
77+
Architecture:
78+
79+
You can use any of the [supported operating systems](https://docs.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners), and the compatible `architecture` can be selected using `architecture`. Values are `x86`, `x64`, `arm64`, `armv6l`, `armv7l`, `ppc64le`, `s390x` (not all of the architectures are available on all platforms).
80+
81+
When using `architecture`, `node-version` must be provided as well.
82+
```yaml
83+
jobs:
84+
build:
85+
runs-on: windows-latest
86+
name: Node sample
87+
steps:
88+
- uses: actions/checkout@v2
89+
- uses: actions/setup-node@v1
90+
with:
91+
node-version: '12'
92+
architecture: 'x64' # optional, x64 or x86. If not specified, x64 will be used by default
93+
- run: npm install
94+
- run: npm test
95+
```
96+
97+
Multiple Operating Systems and Architectures:
7898

79-
You can use any of the [supported operating systems](https://docs.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners). The architecture can be selected using `node-arch`. Values are `x86`, `x64`, `arm64`, `armv6l`, `armv7l`, `ppc64le`, `s390x` (not all of the architectures are available on all platforms).
8099
```yaml
81100
jobs:
82101
build:

0 commit comments

Comments
 (0)