build: windows-latest #31
Workflow file for this run
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: Build and publish | |
on: | |
push: | |
tags: | |
- "*" | |
workflow_dispatch: | |
jobs: | |
download-sources: | |
name: Download and store sources | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v3 | |
- name: Download external sources | |
run: | | |
make prepare-src | |
make download-sqlite | |
make download-sqlean | |
- name: Store sources | |
uses: actions/upload-artifact@v3 | |
with: | |
name: sources | |
path: | | |
init | |
src | |
Makefile | |
build-ubuntu: | |
name: Build for Ubuntu | |
runs-on: ubuntu-20.04 | |
needs: download-sources | |
permissions: | |
contents: write | |
steps: | |
- name: Download sources | |
uses: actions/download-artifact@v3 | |
with: | |
name: sources | |
- name: Compile sources | |
run: | | |
make prepare-dist | |
make compile-sqlite-linux | |
make compile-sqlean-linux | |
- name: Upload binaries to release | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: dist/* | |
file_glob: true | |
tag: ${{ github.ref }} | |
build-windows: | |
name: Build for Windows | |
runs-on: windows-latest | |
needs: download-sources | |
permissions: | |
contents: write | |
steps: | |
- name: Download sources | |
uses: actions/download-artifact@v3 | |
with: | |
name: sources | |
- name: Compile sources | |
shell: bash | |
run: | | |
make prepare-dist | |
make compile-sqlite-windows | |
make compile-sqlean-windows | |
- name: Upload binaries to release | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: dist/*.exe | |
file_glob: true | |
tag: ${{ github.ref }} | |
build-macos: | |
name: Build for macOS | |
runs-on: macos-11 | |
needs: download-sources | |
permissions: | |
contents: write | |
steps: | |
- name: Download sources | |
uses: actions/download-artifact@v3 | |
with: | |
name: sources | |
- name: Compile sources | |
run: | | |
make prepare-dist | |
make compile-sqlite-macos | |
make compile-sqlean-macos | |
- name: Upload binaries to release | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: dist/*-macos | |
file_glob: true | |
tag: ${{ github.ref }} |