Merge pull request #3 from oswaldosierra/dependabot/github_actions/ac… #9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build: | |
| name: Compilar en Linux | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| - name: Instalar .NET 10 SDK | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: '10.0.x' | |
| - name: Instalar GTK 4 | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libgtk-4-1 libgtk-4-dev | |
| - name: Restaurar dependencias | |
| run: dotnet restore | |
| - name: Compilar (Release) | |
| run: dotnet build --configuration Release --no-restore | |
| - name: Publicar artefacto | |
| run: dotnet publish --configuration Release --no-build --output ./publish | |
| - name: Subir binarios | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: coretemplinux-linux-x64 | |
| path: ./publish |