Skip to content

Commit

Permalink
interactive action with choice of system and architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
orso82 committed Feb 7, 2025
1 parent 0b5c71e commit fc8ac1c
Showing 1 changed file with 23 additions and 14 deletions.
37 changes: 23 additions & 14 deletions .github/workflows/interactive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,34 @@ name: interactive

on:
workflow_dispatch:
inputs:
system:
description: 'OS'
required: true
default: 'ubuntu-latest'
type: choice
options:
- ubuntu-latest
- macos-latest
- windows-latest
arch:
description: 'Architecture'
required: true
default: 'x64'
type: choice
options:
- x64
- arm64

env:
PTP_READ_TOKEN: ${{ secrets.PTP_READ_TOKEN }}

jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version:
- "1.x"
os:
- ubuntu-latest
arch:
- x64
name: Julia 1.x - ${{ inputs.system }} - ${{ inputs.arch }}
runs-on: ${{ inputs.system }}
env:
GKSwstype: 100 # disable Plots.jl interactive output
GKSwstype: 100 # disable Plots.jl interactive output
steps:
- name: Get number of CPU cores
uses: SimenB/github-actions-cpu-cores@v2
Expand All @@ -34,8 +43,8 @@ jobs:
#============
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
version: "1.x"
arch: ${{ inputs.arch }}
show-versioninfo: true
- run: make install_ci_add
- uses: julia-actions/julia-buildpkg@v1
Expand Down

0 comments on commit fc8ac1c

Please sign in to comment.