Skip to content

feat: 🎉 new tool

feat: 🎉 new tool #1

Workflow file for this run

name: Build
on:
push:
tags:
- "*"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: write
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
jobs:
create_release:
name: Create Release
runs-on: ubuntu-latest
environment: build
steps:
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
with:
name: ${{ github.ref_name }}
draft: false
prerelease: false
generate_release_notes: false
build_release:
name: Build Release
needs: create_release
environment: build
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
include:
- os: ubuntu-latest
release_suffix: ubuntu
- os: macos-latest
release_suffix: mac
runs-on: ${{ matrix.os }}
steps:
- uses: oven-sh/setup-bun@v1
- name: Checkout code
uses: actions/checkout@v4
- run: bun install
- run: bun tools
- run: bun make:exe
- name: Compress action step
uses: a7ul/[email protected]
id: compress
with:
command: c
files: |
./exe
outPath: coc.tar.gz
- name: Run Linux Build
if: matrix.os == 'ubuntu-latest'
run: cat ./coc.tar.gz > release_ubuntu.tar.gz
- name: Run Mac Build
if: matrix.os == 'macos-latest'
run: cat ./coc.tar.gz > release_mac.tar.gz
- name: Release
uses: softprops/action-gh-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: ${{ needs.create_release.outputs.tag-name }}
files: release_${{ matrix.release_suffix }}.tar.gz
generate_packages:
name: Build packages file
needs: create_release
runs-on: ubuntu-latest
steps:
- uses: oven-sh/setup-bun@v1
- name: Checkout code
uses: actions/checkout@v4
- run: bun install
- run: bun tools
- run: bun make:exe
- name: create sample script
run: |
mkdir -p .debpkg/usr/bin
cp -p exe/* .debpkg/usr/bin/
- name: build-deb-action
uses: jiro4989/build-deb-action@v3
with:
package: "coc"
desc: "ConferenceHall analyzer"
arch: "amd64"
package_root: ".debpkg"
maintainer: "Sylvain Gougouzian <[email protected]>"
version: ${{ github.ref_name }}
- name: Release
uses: softprops/action-gh-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: ${{ needs.create_release.outputs.tag-name }}
files: coc_${{ github.ref_name }}_amd64.deb