Skip to content

Merge pull request #21 from Az-r-ow/ci #10

Merge pull request #21 from Az-r-ow/ci

Merge pull request #21 from Az-r-ow/ci #10

Workflow file for this run

name: Create Release
# This is a test run
on:
push:
tags:
- "v*"
env:
SCRIPTS_DIR: scripts
BUILD_DIR: build
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.9", "3.10"]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Initialize Submodules
run: source ${{ env.SCRIPTS_DIR }}/init_submodules.sh
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Get CMake
uses: lukka/get-cmake@latest
with:
cmakeVersion: "~3.26.0"
- name: Build
run: source ${{ env.SCRIPTS_DIR }}/build_without_tests.sh
- name: Upload .so files
uses: actions/upload-artifact@v4
with:
name: so-file-${{ matrix.os }}-${{ matrix.python-version }}
path: ${{ env.BUILD_DIR}}/*.so
if-no-files-found: error
retention-days: 1
release:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Download .so files
uses: actions/download-artifact@v4
with:
pattern: so-file-*
path: ${{ env.BUILD_DIR }}
merge_multiple: true
- run: ls -R ${{ env.BUILD_DIR }}
- name: Create Release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: ${{ secrets.PAT }}
automatic_release_tag: "latest"
prerelease: true
title: "Pre-release"
files: ${{ env.BUILD_DIR }}/*