diff --git a/.github/workflows/interface-ci.yaml b/.github/workflows/interface-ci.yaml new file mode 100644 index 0000000..bcf1a2b --- /dev/null +++ b/.github/workflows/interface-ci.yaml @@ -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