Skip to content

Commit

Permalink
Add LuaJIT build action
Browse files Browse the repository at this point in the history
[windows-luajit]
  • Loading branch information
outspace committed Feb 24, 2025
1 parent 32455ba commit 0ead5f5
Showing 1 changed file with 72 additions and 0 deletions.
72 changes: 72 additions & 0 deletions .github/workflows/build_luajit_windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: windows-luajit

on: [push]

jobs:
Build-Libs-LuaJIT-Windows:
name: 'Build-Libs-LuaJIT-Windows'
runs-on: windows-latest
if: |
contains(github.event.head_commit.message, '[all]') ||
contains(github.event.head_commit.message, '[windows]') ||
contains(github.event.head_commit.message, '[windows-luajit]') ||
contains(github.event.head_commit.message, '[luajit]')
steps:
- name: 'Get LuaJIT'
uses: actions/checkout@v4
with:
repository: LuaJIT/LuaJIT
ref: v2.1
path: LuaJIT

- name: Install MinGW
uses: msys2/setup-msys2@v2
with:
msystem: mingw64
update: true
install: >-
mingw-w64-x86_64-toolchain
base-devel
git
upx
- name: 'Build LuaJIT binary'
working-directory: LuaJIT/src
run: |
make
- name: 'Archive artifacts'
uses: actions/upload-artifact@v4
with:
name: luajit-windows
path: LuaJIT/src
retention-days: 1

github-release:
name: GitHub Release
needs: Build-Libs-LuaJIT-Windows
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')

steps:
- name: Setup | Checkout
uses: actions/checkout@v4

- name: Setup | Artifacts
uses: actions/download-artifact@v4

- name: Setup | Checksums
run: for file in $(find ./ -name '*.dll' ); do openssl dgst -sha256 -r "$file" | awk '{print $1}' > "${file}.sha256"; done

- name: Zip ALL
run: for file in *; do zip -r ${file%.*}.zip $file; done

- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: luajit-windows.zip
tag: ${{ github.ref }}
overwrite: true
file_glob: true

0 comments on commit 0ead5f5

Please sign in to comment.