forked from SkGufranAhmed/Cardinal-Language
-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (51 loc) · 1.86 KB
/
Copy pathrelease.yml
File metadata and controls
62 lines (51 loc) · 1.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Release
on:
push:
tags:
- 'v*'
workflow_dispatch:
permissions:
contents: write
jobs:
build-and-release:
name: Build ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust (stable)
uses: dtolnay/rust-toolchain@stable
- name: Build standalone distribution
shell: bash
run: |
if [ "$RUNNER_OS" = "Windows" ]; then
powershell -NoProfile -ExecutionPolicy Bypass -File ./build_release.ps1
else
bash ./build_release.sh
fi
- name: Zip dist/ (Windows)
if: runner.os == 'Windows'
shell: powershell
run: Compress-Archive -Path dist -DestinationPath "g-language-windows-latest.zip" -Force
- name: Zip dist/ (Linux/macOS)
if: runner.os != 'Windows'
shell: bash
run: zip -r "g-language-${{ matrix.os }}.zip" dist
- name: Upload zip to GitHub Release
uses: softprops/action-gh-release@v2
with:
files: g-language-*.zip
fail_on_unmatched_files: true
body: |
G ${{ github.ref_name }} — the Cardinal Release.
Standalone toolchains for **Windows**, **Linux** and **macOS**. Download the zip
for your platform, unzip, and run `dist/g.exe examples/json.g --run` (Windows)
or `dist/g examples/json.g --run` (Linux/macOS).
Each bundle contains the compiler (`g`/`gufran`), `cpm`, `apm`, `g-lsp`, a bundled
TCC, the runtime shims and the standard library — no Rust, no Cargo, no manual
compiler install.
Full details: [README.md](README.md) · [CHANGELOG.md](CHANGELOG.md) · [MANUAL.md](MANUAL.md)