From d55d484fe8ff9375fe3aa2c4c3243569842d7c96 Mon Sep 17 00:00:00 2001
From: "Abdel @ StarkWare"
Date: Fri, 20 Oct 2023 09:04:14 +0200
Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20add=20build=20release?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.github/workflows/build_release.yml | 24 ++++++++++++++++++++++++
.github/workflows/{ci.yml => test.yml} | 2 +-
README.md | 9 +++++++++
3 files changed, 34 insertions(+), 1 deletion(-)
create mode 100644 .github/workflows/build_release.yml
rename .github/workflows/{ci.yml => test.yml} (97%)
diff --git a/.github/workflows/build_release.yml b/.github/workflows/build_release.yml
new file mode 100644
index 00000000..9f203f2d
--- /dev/null
+++ b/.github/workflows/build_release.yml
@@ -0,0 +1,24 @@
+name: Build release mode
+
+on:
+ push:
+ branches: [main]
+ pull_request:
+ workflow_dispatch:
+
+jobs:
+ build-release:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Set up Zig
+ uses: korandoru/setup-zig@v1
+ with:
+ zig-version: master
+
+ - name: Build ReleaseFast
+ run: |
+ zig build -Doptimize=ReleaseFast
+ echo "Binary size:"
+ du -h ./zig-out/bin/cairo-zig
diff --git a/.github/workflows/ci.yml b/.github/workflows/test.yml
similarity index 97%
rename from .github/workflows/ci.yml
rename to .github/workflows/test.yml
index d3a9ebff..4fe87526 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/test.yml
@@ -1,4 +1,4 @@
-name: Lint and test
+name: Test
on:
push:
diff --git a/README.md b/README.md
index e5a137af..eb256b9b 100644
--- a/README.md
+++ b/README.md
@@ -3,6 +3,15 @@
cairo-zig
+
+
+
+[![GitHub Workflow Status](https://github.com/abdelhamidbakhta/cairo-zig/actions/workflows/test.yml/badge.svg)](https://github.com/abdelhamidbakhta/cairo-zig/actions/workflows/test.yml)
+[![Project license](https://img.shields.io/github/license/abdelhamidbakhta/cairo-zig.svg?style=flat-square)](LICENSE)
+[![Pull Requests welcome](https://img.shields.io/badge/PRs-welcome-ff69b4.svg?style=flat-square)](https://github.com/abdelhamidbakhta/cairo-zig/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22)
+
+
+
> _Note that `cairo-zig` is still experimental. Breaking changes will be made before the first stable release. The library is also NOT audited or reviewed for security at the moment. Use at your own risk._
## TODOs