Skip to content

Commit

Permalink
Add YAML files for GitHub Actions
Browse files Browse the repository at this point in the history
Add `msbuild.yml` and `dotnet.yml`

Files for `MSBuild` and `.NET` GitHub Actions
  • Loading branch information
takano32 committed Apr 8, 2023
1 parent 94bb1fd commit 45da651
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: .NET

on: push

jobs:
build:
runs-on: ubuntu-latest
env:
DOTNET_NOLOGO: true
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x

- name: Publish
run: make

- name: Tar linux-x64 files
run: cd build && tar cvf linux-x64.tar linux-x64
- name: Upload linux-x64 Tar
uses: actions/upload-artifact@v3
with:
name: linux-x64
path: build/linux-x64.tar
- name: Tar osx-x64 files
run : cd build && tar cvf osx-x64.tar osx-x64
- name: Upload osx-x64 Tar
uses: actions/upload-artifact@v3
with:
name: osx-x64
path: build/osx-x64.tar
- name: Tar osx-arm64 files
run : cd build && tar cvf osx-arm64.tar osx-arm64
- name: Upload osx-arm64 Tar
uses: actions/upload-artifact@v3
with:
name: osx-arm64
path: build/osx-arm64.tar
31 changes: 31 additions & 0 deletions .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: MSBuild

on: push

jobs:
build:
runs-on: windows-2022
env:
DOTNET_NOLOGO: true
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.1
with:
msbuild-architecture: x64

- name: Publish
run: .\build-all.cmd

- name: Upload PsxPackagerGUI Artifact
uses: actions/upload-artifact@v3
with:
name: PsxPackagerGUI
path: build\PsxPackagerGUI\**
- name: Upload win-x64 Artifact
uses: actions/upload-artifact@v3
with:
name: win-x64
path: build\win-x64\**

0 comments on commit 45da651

Please sign in to comment.