|
18 | 18 | description: The name of the resulting binary |
19 | 19 | required: false |
20 | 20 | type: string |
21 | | - fatcore: |
22 | | - default: false |
23 | | - description: Whether to build a fat binary or not |
24 | | - required: false |
25 | | - type: boolean |
26 | 21 | node-version: |
27 | 22 | default: "20" |
28 | 23 | description: The node version to build for eg 16 | 18 | 20 |
|
56 | 51 | cache: npm |
57 | 52 | - name: Install dependencies |
58 | 53 | run: npm clean-install --prefer-offline --frozen-lockfile --production |
59 | | - - name: Install fatcore |
60 | | - if: inputs.fatcore == true |
61 | | - run: scripts/fatcore-install.sh ${{ inputs.edge == true && '--edge' || '' }} |
| 54 | + - name: Install plugins |
| 55 | + run: scripts/install-plugins.sh --lando bin/lando ${{ inputs.edge == true && '--edge' || '' }} |
62 | 56 | - name: Switch to edge channel |
63 | 57 | if: inputs.edge == true |
64 | 58 | run: | |
|
78 | 72 | os: ${{ inputs.os }} |
79 | 73 | options: --options dns-result-order=ipv4first |
80 | 74 | pkg: "@yao-pkg/pkg@5.16.1" |
81 | | - upload-key: "packaged-${{ inputs.filename }}-${{ inputs.os }}-${{ inputs.arch }}${{ inputs.fatcore == false && '-slim' || '' }}-${{ github.sha }}" |
| 75 | + upload-key: "packaged-${{ inputs.filename }}-${{ inputs.os }}-${{ inputs.arch }}-${{ github.sha }}" |
82 | 76 | - name: Ensure version |
83 | 77 | if: (inputs.os == 'linux' && runner.os == 'Linux') || (inputs.os == 'macos' && runner.os == 'macOS') |
84 | 78 | run: ./dist/${{ inputs.filename }} version --all |
|
88 | 82 | - name: Ensure channel |
89 | 83 | if: (inputs.os == 'linux' && runner.os == 'Linux') || (inputs.os == 'macos' && runner.os == 'macOS') |
90 | 84 | run: ./dist/${{ inputs.filename }} config --path channel | grep ${{ inputs.edge == true && 'edge' || 'stable' }} |
91 | | - - name: Ensure slimcore |
92 | | - if: ((inputs.os == 'linux' && runner.os == 'Linux') || (inputs.os == 'macos' && runner.os == 'macOS')) && inputs.fatcore == false |
93 | | - run: ./dist/${{ inputs.filename }} config --path fatcore | grep false |
94 | | - - name: Ensure fatcore |
95 | | - if: ((inputs.os == 'linux' && runner.os == 'Linux') || (inputs.os == 'macos' && runner.os == 'macOS')) && inputs.fatcore == true |
| 85 | + - name: Ensure plugin install |
| 86 | + if: ((inputs.os == 'linux' && runner.os == 'Linux') || (inputs.os == 'macos' && runner.os == 'macOS')) |
96 | 87 | run: | |
97 | 88 | ./dist/${{ inputs.filename }} config --path fatcore | grep true |
98 | | - ./dist/${{ inputs.filename }} config | grep -q "node_modules/@lando/wordpress" |
| 89 | + ./dist/${{ inputs.filename }} config | grep -q "/snapshot/core/plugins/wordpress" |
0 commit comments