Skip to content

sqlpkg: 0.26.0

sqlpkg: 0.26.0 #63

Workflow file for this run

name: publish
on:
push:
tags:
- "*"
workflow_dispatch:
env:
SQLITE_RELEASE_YEAR: "2021"
SQLITE_VERSION: "3360000"
SQLITE_BRANCH: "3.36"
jobs:
publish:
name: Publish for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-20.04
- os: windows-latest
- os: macos-latest
steps:
- uses: actions/checkout@v2
- name: Download SQLite sources
shell: bash
run: |
make prepare-dist
make download-sqlite
make download-external
- name: Build for Linux
if: matrix.os == 'ubuntu-20.04'
run: |
sudo apt update
sudo apt install -y gcc-aarch64-linux-gnu
make compile-linux-x86
make compile-linux-arm64
make pack-linux
- name: Install MSYS2 and 'mingw-w64-i686-toolchain'
if: matrix.os == 'windows-latest'
uses: msys2/setup-msys2@v2
with:
cache: true
install: mingw-w64-i686-toolchain
update: true
- name: Build for Windows
if: matrix.os == 'windows-latest'
shell: bash
run: |
$RUNNER_TEMP/msys64/msys2_shell.cmd -defterm -no-start -mingw32 -lc "mingw32-make compile-windows-x86"
make compile-windows
make pack-windows
- name: Build for macOS
if: matrix.os == 'macos-latest'
run: |
make compile-macos-x86
make compile-macos-arm64
make pack-macos
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/*.zip
file_glob: true
tag: ${{ github.ref }}