Skip to content

Commit

Permalink
ci(github-actions): simplify action files
Browse files Browse the repository at this point in the history
  • Loading branch information
JaDogg committed Apr 14, 2024
1 parent ab4e450 commit e856022
Show file tree
Hide file tree
Showing 8 changed files with 118 additions and 117 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,32 @@ jobs:
with:
name: coverage
path: main/compiler/*.zip
fuzz-check-ubuntu-x86_64:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04]
steps:
- name: Checkout git repo
uses: actions/checkout@v4
with:
path: main
submodules: 'true'
- name: Preparations
working-directory: main
run: |
git submodule init
git submodule update
sudo apt update
sudo apt install -y docker
- name: Test
working-directory: main/compiler
run: |
./cov
zip -r llvm-fuzz-coverage.zip ./bin/coverage
zip -r llvm-fuzz-failed.zip ./bin/fuzz
- name: Upload fuzz-coverage
uses: actions/upload-artifact@v4
with:
name: fuzz-coverage
path: main/compiler/*.zip
59 changes: 59 additions & 0 deletions .github/workflows/development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,35 @@ env:
PYTHONLEGACYWINDOWSSTDIO: utf-8

jobs:
check-windows-x86_64:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-2019]
steps:
- name: Checkout git repo
uses: actions/checkout@v4
with:
path: main
submodules: 'true'
- name: Preparations
working-directory: main
run: |
git submodule init
git submodule update
mkdir compiler/cmake-build-release
- name: Configuring CMake
working-directory: main/compiler/cmake-build-release
run: |
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release ../
- name: Build
working-directory: main/compiler/cmake-build-release
run: |
ninja all
- name: Test
working-directory: main/compiler/cmake-build-release
run: |
ninja test
check-ubuntu-x86_64:
runs-on: ${{ matrix.os }}
strategy:
Expand Down Expand Up @@ -39,3 +68,33 @@ jobs:
working-directory: main/compiler/cmake-build-release
run: |
ninja test
check-macos-x86_64:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-11]
steps:
- name: Checkout git repo
uses: actions/checkout@v4
with:
path: main
submodules: 'true'
- name: Preparations
working-directory: main
run: |
git submodule init
git submodule update
brew install cmake ninja gcc p7zip
mkdir -p compiler/cmake-build-release
- name: Configuring CMake
working-directory: main/compiler/cmake-build-release
run: |
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release ../
- name: Build
working-directory: main/compiler/cmake-build-release
run: |
ninja all
- name: Test
working-directory: main/compiler/cmake-build-release
run: |
ninja test
40 changes: 0 additions & 40 deletions .github/workflows/development_macos.yml

This file was deleted.

35 changes: 0 additions & 35 deletions .github/workflows/fuzz-coverage.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
submodules: 'true'
- name: Build zips & 7zs
run: |
echo "Running manual release"
echo "Running pre release"
cd main
git rev-parse HEAD
python compiler/scripts/manual_release.py
Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:
submodules: 'true'
- name: Build zips & 7zs
run: |
echo "Running manual release"
echo "Running pre release"
cd main
pwd
ls -ltra
Expand Down
30 changes: 28 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
on:
push:
tags:
- 'v*'
- 'v[0-9]+.[0-9]+.[0-9]+'
workflow_dispatch:
env:
PYTHONIOENCODING: utf-8
Expand Down Expand Up @@ -30,4 +30,30 @@ jobs:
main/compiler/comp_output_test/yaksha_v*.tar.gz
main/compiler/comp_output_test/yaksha_v*.zip
draft: 'true'
fail_on_unmatched_files: 'false'
fail_on_unmatched_files: 'false'
release-macos:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-11]
permissions:
contents: write
steps:
- name: Install software
run: brew install cmake ninja gcc p7zip
- name: Checkout git repo
uses: actions/checkout@v4
with:
path: main
submodules: 'true'
- name: Build zips & 7zs
run: python main/compiler/scripts/release.py
- name: Release
uses: softprops/action-gh-release@v2
with:
files: |
main/compiler/comp_output_test/yaksha_v*.7z
main/compiler/comp_output_test/yaksha_v*.tar.gz
main/compiler/comp_output_test/yaksha_v*.zip
draft: 'true'
fail_on_unmatched_files: 'false'
35 changes: 0 additions & 35 deletions .github/workflows/release_macos.yml

This file was deleted.

3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,8 @@
![https://yakshalang.github.io/](https://yakshalang.github.io/imgs/yk-banner1.png)

[![.github/workflows/development.yml](https://github.com/YakshaLang/Yaksha/actions/workflows/development.yml/badge.svg)](https://github.com/YakshaLang/Yaksha/actions/workflows/development.yml)
[![.github/workflows/development_macos.yml](https://github.com/YakshaLang/Yaksha/actions/workflows/development_macos.yml/badge.svg)](https://github.com/YakshaLang/Yaksha/actions/workflows/development_macos.yml)
[![.github/workflows/coverage.yml](https://github.com/YakshaLang/Yaksha/actions/workflows/coverage.yml/badge.svg?branch=main&event=workflow_dispatch)](https://github.com/YakshaLang/Yaksha/actions/workflows/coverage.yml)
[![.github/workflows/fuzz-coverage.yml](https://github.com/YakshaLang/Yaksha/actions/workflows/fuzz-coverage.yml/badge.svg?branch=main&event=workflow_dispatch)](https://github.com/YakshaLang/Yaksha/actions/workflows/fuzz-coverage.yml)
[![.github/workflows/release.yml](https://github.com/YakshaLang/Yaksha/actions/workflows/release.yml/badge.svg)](https://github.com/YakshaLang/Yaksha/actions/workflows/release.yml)
[![.github/workflows/release_macos.yml](https://github.com/YakshaLang/Yaksha/actions/workflows/release_macos.yml/badge.svg)](https://github.com/YakshaLang/Yaksha/actions/workflows/release_macos.yml)

# Documentation

Expand Down

0 comments on commit e856022

Please sign in to comment.