Merge branch 'development_kristof10' into development

# Conflicts:
#	.github/workflows/build_and_test.yml
#	.github/workflows/hero_build_linux.yml
#	.github/workflows/hero_build_macos.yml
#	install_herolib.vsh
#	install_v.sh
#	workflows/hero_build_macos.yml
This commit is contained in:
2025-02-07 11:20:20 +03:00
347 changed files with 11655 additions and 2930 deletions

View File

@@ -2,9 +2,9 @@ name: Deploy Documentation to Pages
on:
push:
branches: ["main"]
branches: ["development"]
workflow_dispatch:
branches: ["main"]
branches: ["development"]
permissions:
contents: read

80
.github/workflows/hero_build_all.yml vendored Normal file
View File

@@ -0,0 +1,80 @@
name: Build Hero on Linux & Run tests
permissions:
contents: write
on:
push:
branches: ["main","development"]
workflow_dispatch:
branches: ["main","development"]
jobs:
build:
strategy:
matrix:
include:
- target: x86_64-unknown-linux-musl
os: ubuntu-latest
short-name: linux-i64
- target: aarch64-unknown-linux-musl
os: ubuntu-latest
short-name: linux-arm64
- target: aarch64-apple-darwin
os: macos-latest
short-name: macos-arm64
- target: x86_64-apple-darwin
os: macos-13
short-name: macos-i64
runs-on: ${{ matrix.os }}
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "🔎 The name of your branch is ${{ github.ref_name }} and your repository is ${{ github.repository }}."
- name: Check out repository code
uses: actions/checkout@v3
- name: Setup V & Herolib
run: ./install_v.sh --herolib
- name: Do all the basic tests
run: ./test_basic.vsh
- name: Build Hero
run: |
v -w -d use_openssl -enable-globals cli/hero.v -o cli/hero-${{ matrix.target }}
- name: Upload
uses: actions/upload-artifact@v4
with:
name: hero-${{ matrix.target }}
path: cli/hero-${{ matrix.target }}
release_hero:
needs: upload
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Download Artifacts
uses: actions/download-artifact@v4
with:
path: cli/bins
merge-multiple: true
- name: Release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
name: Release ${{ github.ref_name }}
draft: false
fail_on_unmatched_files: true
# body: ${{ steps.changelog.outputs.changelog }}
files: cli/bins/*

View File

@@ -1,4 +1,4 @@
name: Build Hero & Run tests
name: Build Hero on Linux & Run tests
permissions:
contents: write
@@ -15,12 +15,6 @@ jobs:
- target: x86_64-unknown-linux-musl
os: ubuntu-latest
short-name: linux-i64
- target: aarch64-apple-darwin
os: macos-latest
short-name: macos-arm64
- target: x86_64-apple-darwin
os: macos-13
short-name: macos-i64
runs-on: ${{ matrix.os }}
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
@@ -30,16 +24,9 @@ jobs:
- name: Check out repository code
uses: actions/checkout@v3
- name: Setup Vlang
run: ./install_v.sh --github-actions
- name: Setup Herolib
run: ./install_herolib.vsh
- name: Build Hero
run: |
v -w -cg -gc none -no-retry-compilation -d use_openssl -enable-globals cli/hero.v
- name: Setup V & Herolib
run: ./install_v.sh --herolib
- name: Do all the basic tests
run: |
./test_basic.vsh
run: ./test_basic.vsh

View File

@@ -1,98 +0,0 @@
name: Release
on:
push:
tags:
- v*
jobs:
upload:
strategy:
matrix:
include:
- target: aarch64-apple-darwin
os: macos-latest
short-name: macos-arm64
- target: x86_64-apple-darwin
os: macos-13
short-name: macos-i64
- target: x86_64-unknown-linux-musl
os: ubuntu-latest
short-name: linux-i64
runs-on: ${{ matrix.os }}
permissions:
contents: write
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Setup Vlang
run: ./install_v.sh --github-actions
- name: Setup Herolib
run: ./install_herolib.vsh
- name: Build Hero
run: |
v -w -cg -gc none -no-retry-compilation -d use_openssl -enable-globals cli/hero.v -o cli/hero-${{ matrix.target }}
- name: Upload
uses: actions/upload-artifact@v4
with:
name: hero-${{ matrix.target }}
path: cli/hero-${{ matrix.target }}
release_hero:
needs: upload
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Check out repository code
uses: actions/checkout@v4
# TODO: this adds commits that don't belong to this branhc, check another action
# - name: Generate changelog
# id: changelog
# uses: heinrichreimer/github-changelog-generator-action@v2.3
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# headerLabel: "# 📑 Changelog"
# breakingLabel: "### 💥 Breaking"
# enhancementLabel: "### 🚀 Enhancements"
# bugsLabel: "### 🐛 Bug fixes"
# securityLabel: "### 🛡️ Security"
# issuesLabel: "### 📁 Other issues"
# prLabel: "### 📁 Other pull requests"
# addSections: '{"documentation":{"prefix":"### 📖 Documentation","labels":["documentation"]},"tests":{"prefix":"### ✅ Testing","labels":["tests"]}}'
# onlyLastTag: true
# issues: false
# issuesWoLabels: false
# pullRequests: true
# prWoLabels: true
# author: true
# unreleased: true
# compareLink: true
# stripGeneratorNotice: true
# verbose: true
- name: Download Artifacts
uses: actions/download-artifact@v4
with:
path: cli/bins
merge-multiple: true
- name: Release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
name: Release ${{ github.ref_name }}
draft: false
fail_on_unmatched_files: true
# body: ${{ steps.changelog.outputs.changelog }}
files: cli/bins/*