[go: up one dir, main page]

Skip to content

chore: upgrade duckdb (#146) #32

chore: upgrade duckdb (#146)

chore: upgrade duckdb (#146) #32

Workflow file for this run

name: Release Version
on:
push:
tags:
- "v*.*.*"
permissions:
contents: write
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
arch: [amd64, arm64]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup environment
uses: ./.github/actions/setup-env
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Save GitHub tag and commit sha to environment
run: |
echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
echo "COMMIT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
- name: Install ARM64 toolchain
if: matrix.os == 'ubuntu-latest' && matrix.arch == 'arm64'
run: |
sudo apt-get update
sudo apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
- name: Build
run: task core:release:${{ matrix.os == 'ubuntu-latest' && 'linux' || 'darwin' }}:${{ matrix.arch }}
- name: Create release directory
run: mkdir -p release
- name: Zip artifact
run: zip -j release/medama-${{ env.VERSION }}-${{ matrix.os == 'ubuntu-latest' && 'linux' || 'darwin' }}-${{ matrix.arch }}.zip ./core/bin/medama_${{ matrix.os == 'ubuntu-latest' && 'linux' || 'darwin' }}_${{ matrix.arch }}
- uses: actions/upload-artifact@v4
with:
name: release-${{ matrix.os == 'ubuntu-latest' && 'linux' || 'darwin' }}-${{ matrix.arch }}
path: release/medama-${{ env.VERSION }}-${{ matrix.os == 'ubuntu-latest' && 'linux' || 'darwin' }}-${{ matrix.arch }}.zip
retention-days: 1
if-no-files-found: error
release:
runs-on: ubuntu-latest
needs: build
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
pattern: release-*
path: release
merge-multiple: true
- name: Create release
uses: softprops/action-gh-release@v2
with:
files: release/*
draft: true
fail_on_unmatched_files: true
generate_release_notes: true