Skip to content

Commit

Permalink
add interface CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzyhau committed Feb 18, 2024
1 parent 6dde318 commit f13fe1e
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/interface-ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Interface CI

on:
push:
branches: '**'
tags-ignore: '**'
paths-ignore:
- '.github/*'
- '.github/workflows/**.yml'
- '.gitattributes'
- '.gitignore'
- 'docs/**'
- '**.md'
- 'LICENSE'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.x'

- name: Restore packages
run: dotnet restore Interface/FEZRepacker.Interface.csproj

- name: Build for Windows
run: dotnet publish Interface/FEZRepacker.Interface.csproj -c Release -r win-x86 --self-contained

- name: Build for Linux
run: dotnet publish Interface/FEZRepacker.Interface.csproj -c Release -r linux-arm64 --self-contained

- name: Upload Windows artifact
uses: actions/upload-artifact@v4
with:
name: FEZRepacker.Interface.Windows
path: |
Interface/bin/Release/net6.0/win-x86/publish/FEZrepacker.exe
Interface/bin/Release/net6.0/win-x86/publish/FEZRepacker.Interface.pdb
Interface/bin/Release/net6.0/win-x86/publish/FEZRepacker.Core.pdb
if-no-files-found: error

- name: Upload Linux artifact
uses: actions/upload-artifact@v4
with:
name: FEZRepacker.Interface.Linux
path: |
Interface/bin/Release/net6.0/linux-arm64/publish/FEZrepacker
Interface/bin/Release/net6.0/linux-arm64/publish/FEZRepacker.Interface.pdb
Interface/bin/Release/net6.0/linux-arm64/publish/FEZRepacker.Core.pdb
if-no-files-found: error

0 comments on commit f13fe1e

Please sign in to comment.