aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/test.yml45
1 files changed, 45 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index ecd6fd50..563b09be 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -127,6 +127,51 @@ jobs:
127 ./smoke_test.sh luarocks-dev.tar.gz binary 127 ./smoke_test.sh luarocks-dev.tar.gz binary
128 128
129 ############################################################################## 129 ##############################################################################
130 WindowsBinaryBuild:
131 runs-on: ubuntu-latest
132 strategy:
133 fail-fast: false
134 matrix:
135 include:
136 - package: gcc-mingw-w64-i686-posix
137 make-target: windows-binary-32
138 mingw-sysroot: /usr/i686-w64-mingw32
139
140 - package: gcc-mingw-w64-x86-64-posix
141 make-target: windows-binary-64
142 mingw-sysroot: /usr/x86_64-w64-mingw32
143
144 steps:
145 - uses: actions/checkout@main
146
147 # [!NOTE]:
148 #
149 # During tests, the exact same
150 # job (WindowsBinaryBuild)
151 # fails to build the cross compiler
152 # whenever we use Lua 5.4 provided
153 # by the packages `lua5.4 liblua5.4-dev`
154 # on Debian-based distros.
155 #
156 # On the other hand, installing Lua 5.4
157 # from source, as happens applying
158 # the `luarocks/gh-actions-lua@master`
159 # action below, everything runs as
160 # it should.
161 - uses: luarocks/gh-actions-lua@master
162 with:
163 luaVersion: 5.4
164
165 - name: Install cross compiler
166 run: sudo apt install ${{ matrix.package }}
167
168 - name: Configure LuaRocks to build the cross compiled binaries
169 run: ./configure "--with-lua=${{ github.workspace }}/.lua"
170
171 - name: Cross compile `luarocks.exe` and `luarocks-admin.exe`
172 run: make "MINGW_SYSROOT=${{ matrix.mingw-sysroot }}" ${{ matrix.make-target }}
173
174 ##############################################################################
130 WindowsTest: 175 WindowsTest:
131 runs-on: "windows-latest" 176 runs-on: "windows-latest"
132 defaults: 177 defaults: