Skip to content

v0.0.1-alpha.5

v0.0.1-alpha.5 #5

Workflow file for this run

name: "Release"
on:
release:
types: [published]
permissions:
contents: read
jobs:
build-linux-x86_64-extension:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- run: ./scripts/vendor.sh
- run: make loadable release=1
- uses: actions/upload-artifact@v4
with:
name: sqlite-lembed-linux-x86_64-extension
path: dist/*.so
build-macos-x86_64-extension:
runs-on: macos-11
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- run: ./scripts/vendor.sh
- run: make loadable release=1
- uses: actions/upload-artifact@v4
with:
name: sqlite-lembed-macos-x86_64-extension
path: dist/*.dylib
build-macos-aarch64-extension:
runs-on: macos-14
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- run: ./scripts/vendor.sh
- run: make loadable release=1
- uses: actions/upload-artifact@v4
with:
name: sqlite-lembed-macos-aarch64-extension
path: dist/*.dylib
build-windows-x86_64-extension:
runs-on: windows-2019
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: ilammy/msvc-dev-cmd@v1
- run: ./scripts/vendor.sh
- run: make loadable release=1
- uses: actions/upload-artifact@v4
with:
name: sqlite-lembed-windows-x86_64-extension
path: dist/*.dll
dist:
runs-on: ubuntu-latest
needs:
[
build-linux-x86_64-extension,
build-macos-x86_64-extension,
build-macos-aarch64-extension,
build-windows-x86_64-extension,
]
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: sqlite-lembed-linux-x86_64-extension
path: dist/linux-x86_64
- uses: actions/download-artifact@v4
with:
name: sqlite-lembed-macos-x86_64-extension
path: dist/macos-x86_64
- uses: actions/download-artifact@v4
with:
name: sqlite-lembed-macos-aarch64-extension
path: dist/macos-aarch64
- uses: actions/download-artifact@v4
with:
name: sqlite-lembed-windows-x86_64-extension
path: dist/windows-x86_64
- run: |
curl -L https://github.com/asg017/sqlite-dist/releases/download/v0.0.1-alpha.11/sqlite-dist-x86_64-unknown-linux-gnu.tar.xz \
| tar xfJ - --strip-components 1
- run: make sqlite-lembed.h
- run: ./sqlite-dist ./sqlite-dist.toml --input dist/ --output distx/ --version $(cat VERSION)
- run: |
gh release upload ${{ github.ref_name }} \
distx/amalgamation/* \
distx/github_releases/* \
distx/spm/* \
distx/sqlpkg/* \
distx/checksums.txt \
distx/sqlite-dist-manifest.json \
distx/install.sh
env:
GH_TOKEN: ${{ github.token }}
- name: Install node
uses: actions/setup-node@v3
with:
node-version: "16"
registry-url: "https://registry.npmjs.org"
- run: |
npm publish --access public distx/npm/sqlite-lembed-darwin-arm64.tar.gz
npm publish --access public distx/npm/sqlite-lembed-darwin-x64.tar.gz
npm publish --access public distx/npm/sqlite-lembed-linux-x64.tar.gz
npm publish --access public distx/npm/sqlite-lembed.tar.gz
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2
- run: |
for file in distx/gem/*; do
gem push "$file"
done
env:
GEM_HOST_API_KEY: ${{ secrets.GEM_HOST_API_KEY }}
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: pip install twine
- run: |
twine upload distx/pip/*
twine upload distx/datasette/*
twine upload distx/sqlite_utils/*
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}