Update github actions scripts
MODIFY
.github/workflows/linux-release.yml
.github/workflows/linux-release.yml
-name: Ubuntu release 16.04 / Qt 5.15
+name: Ubuntu 16.04 / Qt 5.15
on:
- push:
- branches:
- - master
+ workflow_run:
+ workflows: ["Release setup"]
+ types: [completed]
jobs:
buildUbuntuXenial:
@@ -61,11 +61,9 @@ jobs:
- name: continuous release
uses: softprops/action-gh-release@v1
- if: github.ref == 'refs/heads/master'
with:
- prerelease: true
- name: Continuous
files: Ripes*.AppImage*
+ tag_name: continuous
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

MODIFY
.github/workflows/mac-release.yml
.github/workflows/mac-release.yml
-name: Mac
+name: Mac / Qt 5.15
on:
- push:
- branches:
- - master
- pull_request:
- branches:
- - master
+ workflow_run:
+ workflows: ["Release setup"]
+ types: [completed]
jobs:
buildMac:
@@ -35,27 +32,21 @@ jobs:
DIR=$(pwd)
cmake -DCMAKE_BUILD_TYPE=Release .
make
- echo "Post build folder contents:"
- ls -lh
- name: package artifacts
run: |
macdeployqt Ripes.app
- echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
source .github/scripts/set_version.sh
export APPNAME=Ripes-${RIPES_VERSION}-mac-x86_64
- sudo mv Ripes.app $APPNAME.app
+ echo "APPNAME=${APPNAME}" >> $GITHUB_ENV
+ sudo mv Ripes.app ${APPNAME}.app
sudo zip -r ${APPNAME}.zip ${APPNAME}.app/
- echo "Post bundle folder contents:"
- ls -lh
- name: continuous release
uses: softprops/action-gh-release@v1
- if: github.ref == 'refs/heads/master' && !(startsWith(github.ref, 'refs/tags/'))
with:
- prerelease: true
- name: Continuous
files: ${{ env.APPNAME }}.zip
+ tag_name: continuous
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

ADD
.github/workflows/release_setup.yml
+name: Release setup
+
+on:
+ push:
+ branches:
+ - master
+
+jobs:
+ release-setup:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: "marvinpinto/action-automatic-releases@latest"
+ with:
+ repo_token: "${{ secrets.GITHUB_TOKEN }}"
+ automatic_release_tag: "continuous"
+ prerelease: true
+ title: "Continuous release"

ADD
.github/workflows/test.yml
+name: Ripes Tests
+
+on:
+ push:
+ branches:
+ - master
+ pull_request:
+
+jobs:
+ build:
+ runs-on: ${{ matrix.os }}
+ strategy:
+ fail-fast: false
+ matrix:
+ os: [ubuntu-latest, macos-latest, ubuntu-16.04, ubuntu-18.04]
+
+ steps:
+ - uses: actions/checkout@v2
+ with:
+ submodules: recursive
+
+ # Container preparation
+ - if: contains( matrix.os, 'ubuntu')
+ name: Prepare ubuntu container for build
+ run: |
+ sudo apt-get update
+ sudo apt-get upgrade -y
+ DEBIAN_FRONTEND=noninteractive sudo apt-get install -y -q --force-yes \
+ automake cmake git wget libfuse2 desktop-file-utils tree \
+ build-essential libgl1-mesa-dev libxkbcommon-x11-0 libpulse-dev
+ echo "CC=gcc-9" >> $GITHUB_ENV
+ echo "CXX=g++-9" >> $GITHUB_ENV
+
+
+ - if: contains( matrix.os, 'macos')
+ name: Prepare macos container for build
+ run: brew install autoconf automake libtool xz pkg-config libgit2 libjpg libpng libmtp
+
+
+ # Qt installation
+ - name: install Qt
+ uses: jurplel/install-qt-action@v2
+ with:
+ version: '5.15.2'
+ modules: 'qtcharts qtsvg'
+ install-deps: false
+
+
+ # Build ripes
+ - name: build Ripes
+ run: |
+ cmake -DCMAKE_BUILD_TYPE=Release .
+ make -j $(nproc)

MODIFY
README.md
README.md
# Ripes
-[![Build Status](https://travis-ci.com/mortbopet/Ripes.svg?branch=master)](https://travis-ci.com/mortbopet/Ripes/)
+[![Mac release / Qt 5.15](https://github.com/mortbopet/Ripes/actions/workflows/mac-release.yml/badge.svg)](https://github.com/mortbopet/Ripes/actions/workflows/mac-release.yml)
+[![Ubuntu release 16.04 / Qt 5.15](https://github.com/mortbopet/Ripes/actions/workflows/linux-release.yml/badge.svg)](https://github.com/mortbopet/Ripes/actions/workflows/linux-release.yml)
+[![Ripes CI tests](https://github.com/mortbopet/Ripes/actions/workflows/test.yml/badge.svg)](https://github.com/mortbopet/Ripes/actions/workflows/test.yml)
[![Gitter](https://badges.gitter.im/Ripes-VSRTL/Ripes.svg)](https://gitter.im/Ripes-VSRTL/)
Ripes is a visual computer architecture simulator and assembly code editor built for the [RISC-V instruction set architecture](https://content.riscv.org/wp-content/uploads/2017/05/riscv-spec-v2.2.pdf).

Update github actions scripts