mirror of
https://github.com/julia-actions/setup-julia.git
synced 2026-02-12 11:06:53 +08:00
Add 32-bit example workflows to README
This commit is contained in:
53
README.md
53
README.md
@@ -29,6 +29,8 @@ steps:
|
|||||||
|
|
||||||
### Matrix Testing:
|
### Matrix Testing:
|
||||||
|
|
||||||
|
#### 64-bit Julia only
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
@@ -47,6 +49,57 @@ jobs:
|
|||||||
- run: julia -e 'println("Hello, World!")'
|
- run: julia -e 'println("Hello, World!")'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### 32-bit Julia
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
julia-version: [1.0.4, 1.1.1, 1.2.0-rc3, 1.3.0-alpha]
|
||||||
|
julia-arch: [x64, x86]
|
||||||
|
os: [ubuntu-latest, windows-latest, macOS-latest]
|
||||||
|
# 32-bit Julia binaries are not available on macOS
|
||||||
|
exclude:
|
||||||
|
- os: macOS-latest
|
||||||
|
julia-arch: x86
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1.0.0
|
||||||
|
- name: "Set up Julia"
|
||||||
|
uses: julia-actions/setup-julia@v0.1.0
|
||||||
|
with:
|
||||||
|
version: ${{ matrix.julia-version }}
|
||||||
|
arch: ${{ matrix.julia-arch }}
|
||||||
|
- run: julia -e 'println("Hello, World!")'
|
||||||
|
```
|
||||||
|
|
||||||
|
Alternatively, you can include specific version and OS combinations that will use 32-bit Julia:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
julia-version: [1.0.4, 1.1.1, 1.2.0-rc3, 1.3.0-alpha]
|
||||||
|
os: [ubuntu-latest, windows-latest, macOS-latest]
|
||||||
|
# Additionally create a job using 32-bit Julia 1.0.4 on windows-latest
|
||||||
|
include:
|
||||||
|
- os: windows-latest
|
||||||
|
julia-version: [1.0.4]
|
||||||
|
julia-arch: x86
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1.0.0
|
||||||
|
- name: "Set up Julia"
|
||||||
|
uses: julia-actions/setup-julia@v0.1.0
|
||||||
|
with:
|
||||||
|
version: ${{ matrix.julia-version }}
|
||||||
|
- run: julia -e 'println("Hello, World!")'
|
||||||
|
```
|
||||||
|
|
||||||
## Versioning
|
## Versioning
|
||||||
|
|
||||||
This action follows [GitHub's advice](https://help.github.com/en/articles/about-actions#versioning-your-action) on versioning actions, with an additional `latest` tag.
|
This action follows [GitHub's advice](https://help.github.com/en/articles/about-actions#versioning-your-action) on versioning actions, with an additional `latest` tag.
|
||||||
|
|||||||
Reference in New Issue
Block a user