@@ -18,11 +18,13 @@ jobs:
1818 compile :
1919 strategy :
2020 matrix :
21- job :
22- - { os: ubuntu-latest, target: linux }
23- - { os: macos-latest, target: darwin }
24- - { os: windows-latest, target: windows }
25- runs-on : ${{ matrix.job.os }}
21+ include :
22+ - { os: ubuntu-18.04, target: linux, platform: linux-x64 }
23+ - { os: macos-11, target: darwin, platform: darwin-x64 }
24+ - { os: macos-11, target: darwin, platform: darwin-arm64 }
25+ - { os: windows-latest, target: windows, platform: win32-ia32 }
26+ - { os: windows-latest, target: windows, platform: win32-x64 }
27+ runs-on : ${{ matrix.os }}
2628 steps :
2729 - uses : actions/checkout@v2
2830 with :
@@ -40,14 +42,14 @@ jobs:
4042 fi
4143
4244 # Package suffix relative to the platform
43- if [[ "${{ matrix.job. target }}" = windows ]]; then
45+ if [[ "${{ matrix.target }}" = windows ]]; then
4446 PKG_SUFFIX="zip"
4547 else
4648 PKG_SUFFIX="tar.gz"
4749 fi
4850
4951 # Package name w/ version
50- PKG_BASENAME="${{ env.PROJECT }}-${PKG_VERSION}-${{ matrix.job.target }}"
52+ PKG_BASENAME="${{ env.PROJECT }}-${PKG_VERSION}-${{ matrix.platform }}"
5153
5254 # Full name of the tarball asset
5355 PKG_NAME="${PKG_BASENAME}.${PKG_SUFFIX}"
6365
6466 - uses : actboy168/setup-luamake@master
6567
66- - run : luamake
68+ - run : luamake -platform ${{ matrix.platform }}
6769
6870 - uses : actions/upload-artifact@v2
6971 with :
9395
9496 # Creating release assets
9597 pushd "${STAGING}/" >/dev/null
96- if [[ "${{ matrix.job. target }}" = windows ]]; then
98+ if [[ "${{ matrix.target }}" = windows ]]; then
9799 7z -y a ${NAME} * | tail -2
98100 else
99101 tar czf ${NAME} *
@@ -103,7 +105,7 @@ jobs:
103105 # Packaging submodules for homebrew distribution
104106 - name : Package submodules
105107 id : submodules
106- if : ${{ startsWith(github.ref, 'refs/tags/') && matrix.job. target == 'darwin' }}
108+ if : ${{ startsWith(github.ref, 'refs/tags/') && matrix.target == 'darwin' }}
107109 run : |
108110 STAGING=${{ steps.vars.outputs.PKG_STAGING }}
109111 PKG_SUBMOD_NAME="${{ env.PROJECT }}-${{ steps.vars.outputs.PKG_VERSION }}-submodules.zip"
0 commit comments