|
5 | 5 | branches: [main] |
6 | 6 | pull_request: |
7 | 7 | branches: [main] |
8 | | - # Enables manual triggering from the GitHub Actions UI with custom options |
9 | 8 | workflow_dispatch: |
10 | 9 | inputs: |
11 | 10 | linux: |
12 | 11 | description: "Linux" |
13 | 12 | type: boolean |
14 | | - default: true |
| 13 | + default: false |
15 | 14 | macos: |
16 | 15 | description: "macOS" |
17 | 16 | type: boolean |
|
28 | 27 | description: "Luacheck" |
29 | 28 | type: boolean |
30 | 29 | default: false |
31 | | - prettier: |
32 | | - description: "Prettier" |
| 30 | + markdownlint: |
| 31 | + description: "Markdownlint" |
33 | 32 | type: boolean |
34 | 33 | default: false |
35 | 34 | tests: |
36 | 35 | description: "Tests" |
37 | 36 | type: boolean |
38 | 37 | default: false |
39 | | - |
| 38 | + docs: |
| 39 | + description: "Docs" |
| 40 | + type: boolean |
| 41 | + default: false |
| 42 | + release-please: |
| 43 | + description: "Release Please" |
| 44 | + type: boolean |
| 45 | + default: false |
| 46 | + luarocks-upload: |
| 47 | + description: "Upload to LuaRocks" |
| 48 | + type: boolean |
| 49 | + default: false |
40 | 50 | jobs: |
41 | 51 | ci: |
42 | 52 | uses: BlueLua/.github/.github/workflows/ci.yml@main |
| 53 | + secrets: inherit |
| 54 | + # prettier-ignore |
43 | 55 | with: |
| 56 | + package: "bluelua-${{ github.event.repository.name }}" |
44 | 57 | run: | |
45 | 58 | echo 'KERNEL=="event*", SUBSYSTEM=="input", MODE="0666"' | sudo tee /etc/udev/rules.d/99-evdev-test.rules |
46 | 59 | sudo udevadm control --reload-rules |
47 | 60 | sudo modprobe uinput || true |
48 | 61 | sudo udevadm trigger --subsystem-match=input || true |
49 | 62 | test -e /dev/uinput |
50 | 63 | sudo chmod 666 /dev/uinput |
51 | | - # Forward OS selections if triggered manually, otherwise use defaults for push/pr triggers |
52 | | - linux: ${{ (github.event_name == 'workflow_dispatch' && inputs.linux == true) || (github.event_name != 'workflow_dispatch' && true) }} |
53 | | - macos: ${{ (github.event_name == 'workflow_dispatch' && inputs.macos == true) || (github.event_name != 'workflow_dispatch' && false) }} |
54 | | - windows: ${{ (github.event_name == 'workflow_dispatch' && inputs.windows == true) || (github.event_name != 'workflow_dispatch' && false) }} |
55 | 64 |
|
56 | | - # Forward manual force-run triggers, otherwise default to false on push/pr (allowing auto-triggering) |
57 | | - stylua: ${{ (github.event_name == 'workflow_dispatch' && inputs.stylua == true) || false }} |
58 | | - luacheck: ${{ (github.event_name == 'workflow_dispatch' && inputs.luacheck == true) || false }} |
59 | | - prettier: ${{ (github.event_name == 'workflow_dispatch' && inputs.prettier == true) || false }} |
60 | | - tests: ${{ (github.event_name == 'workflow_dispatch' && inputs.tests == true) || false }} |
| 65 | + linux: ${{ inputs.linux || github.event_name != 'workflow_dispatch' }} |
| 66 | + macos: ${{ inputs.macos || github.event_name != 'workflow_dispatch' }} |
| 67 | + windows: ${{ inputs.windows || github.event_name != 'workflow_dispatch' }} |
| 68 | + |
| 69 | + stylua: ${{ inputs.stylua }} |
| 70 | + luacheck: ${{ inputs.luacheck }} |
| 71 | + markdownlint: ${{ inputs.markdownlint }} |
| 72 | + |
| 73 | + tests: ${{ inputs.tests }} |
| 74 | + docs: ${{ inputs.docs }} |
| 75 | + |
| 76 | + release-please: ${{ inputs.release-please }} |
| 77 | + luarocks-upload: ${{ inputs.luarocks-upload }} |
0 commit comments