Skip to content

Build

Build #1

Workflow file for this run

name: Build/release
on:
push:
tags:
- "*"
workflow_dispatch:
jobs:
release:
runs-on: ${{ matrix.os }}
timeout-minutes: 60
env:
is_tag: ${{ startsWith(github.ref, 'refs/tags/') }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest]
steps:
- name: Check out Git repository
uses: actions/checkout@v4
- name: build for linux
if: startsWith(matrix.os, 'ubuntu')
run: make
- name: build for windows
if: startsWith(matrix.os, 'ubuntu')
run: mingw32-make
- run: ls
# - name: release
# if: env.is_tag == 'true'
# uses: ncipollo/release-action@v1
# with:
# allowUpdates: true
# draft: false
# token: ${{ secrets.GITHUB_TOKEN }}
# artifactErrorsFailBuild: false
# artifacts: "prebuilds/*.tar.gz"
# replacesArtifacts: false
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload win artifact
uses: actions/upload-artifact@v4
with:
name: package-${{ runner.os }}
path: |
DanmakuFactory
DanmakuFactory.exe
permissions:
contents: write