2024-02-09 08:26:57 +00:00
|
|
|
name: Release
|
2024-02-09 08:16:29 +00:00
|
|
|
|
2024-03-01 07:14:19 +00:00
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
discussions: write
|
|
|
|
|
2024-02-09 08:16:29 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- "v*.*.*"
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
2024-03-02 09:31:27 +00:00
|
|
|
outputs:
|
|
|
|
release_body: ${{ steps.git-cliff.outputs.content }}
|
2024-02-09 08:16:29 +00:00
|
|
|
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
|
2024-03-01 07:27:23 +00:00
|
|
|
uses: orhun/git-cliff-action@v3
|
2024-02-17 16:37:42 +00:00
|
|
|
id: git-cliff
|
|
|
|
with:
|
2024-03-02 09:31:27 +00:00
|
|
|
args: -vv --latest --strip header
|
2024-02-17 16:37:42 +00:00
|
|
|
env:
|
2024-03-01 07:27:23 +00:00
|
|
|
OUTPUT: CHANGES.md
|
2024-02-09 08:16:29 +00:00
|
|
|
- name: Release
|
|
|
|
uses: softprops/action-gh-release@v1
|
|
|
|
with:
|
2024-03-01 07:27:23 +00:00
|
|
|
body: ${{ steps.git-cliff.outputs.content }}
|
2024-02-09 08:16:29 +00:00
|
|
|
files: |
|
|
|
|
README.md
|
|
|
|
LICENSE
|
2024-02-17 16:38:43 +00:00
|
|
|
CHANGES.md
|
2024-03-11 11:06:21 +00:00
|
|
|
target/release/edlangc
|
|
|
|
target/release/edb
|