edlang/.github/workflows/release.yml

52 lines
1.5 KiB
YAML
Raw Normal View History

2024-02-09 08:26:57 +00:00
name: Release
2024-02-09 08:16:29 +00:00
on:
push:
tags:
- "v*.*.*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: free HDD space
2024-02-09 08:23:19 +00:00
run: |
# deleting space
sudo rm -rf /usr/share/dotnet/
sudo rm -rf /usr/local/lib/android
2024-02-09 08:16:29 +00:00
- name: Setup rust env
2024-02-14 08:05:42 +00:00
uses: dtolnay/rust-toolchain@stable
2024-02-09 08:16:29 +00:00
- name: Retreive cached dependecies
uses: Swatinem/rust-cache@v2
- name: add llvm deb repository
uses: myci-actions/add-deb-repo@10
with:
repo: deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main
repo-name: llvm-repo
keys-asc: https://apt.llvm.org/llvm-snapshot.gpg.key
- name: Install LLVM
run: sudo apt-get install llvm-17 llvm-17-dev llvm-17-runtime clang-17 clang-tools-17 lld-17 libpolly-17-dev
- name: Install Link deps
run: sudo apt-get install libc-dev build-essential
- name: build release
run: cargo build --release
2024-02-17 16:37:42 +00:00
- name: Generate a changelog
uses: orhun/git-cliff-action@v2
id: git-cliff
with:
2024-02-17 16:38:43 +00:00
args: -vv --latest --strip header
2024-02-17 16:37:42 +00:00
env:
2024-02-17 16:38:43 +00:00
OUTPUT: CHANGES.md
2024-02-09 08:16:29 +00:00
- name: Release
uses: softprops/action-gh-release@v1
with:
2024-02-17 16:38:43 +00:00
body_path: ${{ github.workspace }}/CHANGES.md
2024-02-09 08:16:29 +00:00
generate_release_notes: true
files: |
README.md
LICENSE
2024-02-17 16:38:43 +00:00
CHANGES.md
2024-02-09 08:16:29 +00:00
target/release/edlang