update version to 0.9.1 #746
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [ "master", "ci" ] | |
tags: | |
- v?[0-9].[0-9]+.[0-9]+-[0-9]+ | |
pull_request: | |
# The branches below must be a subset of the branches above | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-12, ubuntu-latest] | |
luarocks_version: [3.9.2] | |
lua_version: [luajit2.1, lua5.1, lua5.2, lua5.3, lua5.4] | |
openssl_version: [openssl-1.0.2u, openssl-1.1.1w, openssl-3.0.13, openssl-3.1.5, openssl-3.2.1] | |
env: | |
MACOSX_DEPLOYMENT_TARGET: 10.12 | |
LUAROCKS: ${{ matrix.luarocks_version }} | |
LUA: ${{ matrix.lua_version }} | |
SSL: ${{ matrix.openssl_version }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Setup | |
run: | |
.github/shell/setup_lua.sh && .github/shell/setup_ssl.sh | |
- name: Build | |
run: | |
.github/shell/build.sh | |
- name: Test | |
run: | |
PKG_CONFIG_PATH=$HOME/.usr/lib64/pkgconfig:$HOME/.usr/lib/pkgconfig PATH=$HOME/.usr/bin:$PATH LD_LIBRARY_PATH=$HOME/.usr/lib64:$HOME/.usr/lib make test | |
deploy: | |
if: startsWith(github.ref, 'refs/tags/') | |
needs: [build] | |
runs-on: ubuntu-latest | |
env: | |
WITH_LUA_ENGINE: LuaJIT | |
LUA: luajit2.1 | |
LUAROCKS: 3.9.2 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Get version | |
id: get_version | |
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/} | |
- name: Setup | |
run: | |
.github/shell/setup_lua.sh | |
- name: Package | |
run: | |
.github/shell/make_rockspec.sh ${{ steps.get_version.outputs.VERSION }} | |
- name: Github Release | |
id: create_release | |
uses: softprops/action-gh-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} | |
with: | |
files: openssl-${{ steps.get_version.outputs.VERSION }}.tar.gz | |
draft: false | |
prerelease: false | |
- name: Luarocks Release | |
# lua-cjson is required for luarocks upload | |
run: | | |
export PATH=$HOME/.usr/bin:$PATH | |
export LUA_CPATH=$HOME/.usr/lib/lua/5.1/?.so | |
luarocks install lua-cjson | |
luarocks build | |
luarocks test | |
luarocks upload openssl-${{ steps.get_version.outputs.VERSION }}.rockspec --api-key=${{ secrets.LUAROCKS_TOKEN }} |