-
Notifications
You must be signed in to change notification settings - Fork 125
73 lines (63 loc) · 2.12 KB
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
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 }}