neveko/.github/workflows/release.yml

30 lines
906 B
YAML
Raw Normal View History

name: cargo-build-release
2023-05-05 07:57:24 +00:00
on:
push:
paths-ignore:
2023-06-12 15:16:18 +00:00
- 'assets/**'
- 'docs/**'
- 'scripts/**'
- 'README.md'
2023-05-06 03:49:22 +00:00
branches: ["v0.*", "!main", "!dev"]
pull_request:
2023-05-06 03:49:22 +00:00
branches: ["v0.*", "!main", "!dev"]
2023-06-23 23:53:27 +00:00
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
2023-05-05 07:57:24 +00:00
- name: Install dependencies
2024-04-07 14:43:18 +00:00
run: sudo apt install -y libssl-dev build-essential
- name: Extract branch name
shell: bash
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >>$GITHUB_OUTPUT
id: extract_branch
- uses: actions/checkout@v3
2023-05-05 07:57:24 +00:00
- run: ./scripts/build_release.sh ${{ steps.extract_branch.outputs.branch }}
- uses: actions/upload-artifact@v3
with:
2023-06-03 14:17:58 +00:00
name: neveko-x86_64-linux-gnu-${{ steps.extract_branch.outputs.branch }}
path: neveko-x86_64-linux-gnu-${{ steps.extract_branch.outputs.branch }}.tar.bz2