edlang/.github/workflows/release.yml

53 lines
1.4 KiB
YAML
Raw Normal View History

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
2024-04-09 11:01:47 +00:00
uses: actions/checkout@v4
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
2024-04-09 11:01:47 +00:00
uses: myci-actions/add-deb-repo@11
2024-02-09 08:16:29 +00:00
with:
2024-04-09 11:01:47 +00:00
repo: deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-18 main
2024-02-09 08:16:29 +00:00
repo-name: llvm-repo
keys-asc: https://apt.llvm.org/llvm-snapshot.gpg.key
- name: Install LLVM
2024-04-09 11:01:47 +00:00
run: sudo apt-get install llvm-18 llvm-18-dev llvm-18-runtime clang-18 clang-tools-18 lld-18 libpolly-18-dev
2024-02-09 08:16:29 +00:00
- 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@v3
2024-02-17 16:37:42 +00:00
id: git-cliff
with:
2024-03-13 11:24:40 +00:00
args: -vv --current --strip header
2024-02-17 16:37:42 +00:00
env:
OUTPUT: CHANGES.md
2024-02-09 08:16:29 +00:00
- name: Release
2024-03-13 11:11:02 +00:00
uses: softprops/action-gh-release@v2
2024-02-09 08:16:29 +00:00
with:
2024-03-13 11:11:02 +00:00
body_path: CHANGES.md
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