Skip to content

Nov 12, 2024: Better memory usage - clean #3

Nov 12, 2024: Better memory usage - clean

Nov 12, 2024: Better memory usage - clean #3

Workflow file for this run

name: Create Release
on:
push:
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
jobs:
create_release:
name: Create Release
permissions: write-all
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: recursive
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: teloscope ${{ github.ref }}
body: |
Changes in this Release
draft: false
prerelease: false
outputs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
add_resources:
needs: create_release
name: Add Resources
strategy:
matrix:
OS: [macos-latest, ubuntu-latest, windows-2019]
include:
- OS: macos-latest
OS_NAME: macOS
- OS: ubuntu-latest
OS_NAME: linux
- OS: windows-2019
OS_NAME: win
runs-on: ${{ matrix.OS }}
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: true
- name: Build
run: make
- name: Zip
uses: papeloto/action-zip@v1
with:
files: build/bin/teloscope
dest: result.zip
- name: Add binaries
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create_release.outputs.upload_url }}
asset_path: result.zip
asset_name: teloscope.${{ github.ref_name }}-${{matrix.OS_NAME}}.zip
asset_content_type: application/zip
add_submodules:
needs: create_release
name: Source with submodules
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: true
- name: Zip
uses: papeloto/action-zip@v1
with:
files: .
dest: result.zip
- name: Add files
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create_release.outputs.upload_url }}
asset_path: result.zip
asset_name: teloscope.${{ github.ref_name }}-with_submodules.zip
asset_content_type: application/zip