Skip to content

Add initial samples for VU1 #328

Add initial samples for VU1

Add initial samples for VU1 #328

Workflow file for this run

name: CI
on:
push:
branches:
- '*'
tags:
- v*
pull_request:
workflow_dispatch:
repository_dispatch:
types: [run_build]
jobs:
build:
runs-on: ubuntu-latest
container: ps2dev/ps2dev:latest
steps:
- name: Install dependencies
run: |
apk add build-base git bash
- name: Workaround permission issue
run: |
git config --global --add safe.directory /__w/AthenaEnv/AthenaEnv
- uses: actions/checkout@v2
- run: |
git fetch --prune --unshallow
- name: Compile project
run: |
make clean
make
- name: Get short SHA
id: slug
run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)"
- name: Upload artifacts
if: ${{ success() }}
uses: actions/upload-artifact@v2
with:
name: AthenaEnv-${{ steps.slug.outputs.sha8 }}
path: bin
- name: Compress & Rename bin folder
run: |
mv bin/ AthenaEnv/
tar -zcvf AthenaEnv.tar.gz AthenaEnv
- name: Create Pre-release
if: github.ref == 'refs/heads/main'
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
title: "Development build"
files: |
AthenaEnv.tar.gz
- name: Release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v1
with:
files: AthenaEnv.tar.gz
tag_name: ${{ steps.tag.outputs.VERSION }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}