Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating workflows. #61

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions .github/workflows/create_release_for_tag.yml

This file was deleted.

48 changes: 48 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
name: Release

on:
workflow_dispatch:
push:
tags:
- "v.[0-9]+.[0-9]+.[0-9]+"
branches:
- main

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: '6.5.1'

- name: Install tools
run: |
sudo apt-get update
sudo apt-get install -y cmake ninja-build clang


- name: Install dependencies
run: sudo apt-get install -y python3-venv

- name: Build
run: |
mkdir build-Release
cd build-Release
cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=clang++ -DBUILD_TESTS=ON ..
cmake --build .

- name: Publish release
uses: softprops/action-gh-release@v1
with:
name: ${{ github.ref_name }}
token: ${{ github.token }}
path: |
build-release/librum
18 changes: 14 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# Runs all tests
---
name: Test

on:
workflow_dispatch:
push:
branches:
- dev/develop
- dev*
- main
pull_request:
branches:
- dev/develop
- dev*
- main


Expand All @@ -30,7 +30,10 @@ jobs:
version: '6.5.1'

- name: Install tools
run: sudo apt-get update && sudo apt-get install -y cmake ninja-build clang
run: |
sudo apt-get update
sudo apt-get install -y cmake ninja-build clang


- name: Install dependencies
run: sudo apt-get install -y python3-venv
Expand All @@ -46,3 +49,10 @@ jobs:
run: |
cd build-Release
ctest

- name: Upload artifact
uses: actions/[email protected]
with:
name: librum
path: |
build-release/librum