diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index f7e6877..b0ad566 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -33,9 +33,9 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: actions/setup-dotnet@v4 - with: - dotnet-version: '8.0.x' + # dotnet 8 SDK is pre-installed on the self-hosted runner host. + - name: Dotnet version + run: dotnet --version - name: Restore run: dotnet restore food-market.sln @@ -57,15 +57,9 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: pnpm/action-setup@v4 - with: - version: 10 - - - uses: actions/setup-node@v4 - with: - node-version: '20' - cache: 'pnpm' - cache-dependency-path: src/food-market.web/pnpm-lock.yaml + # node 20 + pnpm are pre-installed on the self-hosted runner host. + - name: Node + pnpm version + run: node --version && pnpm --version - name: Install run: pnpm install --frozen-lockfile @@ -73,38 +67,15 @@ jobs: - name: Build (tsc + vite) run: pnpm build - - name: Upload dist - uses: actions/upload-artifact@v4 - with: - name: web-dist-${{ github.sha }} - path: src/food-market.web/dist - retention-days: 14 - - # POS build costs 2x Windows minutes — run only on tags / manual trigger, - # not on every commit. Releases are built from tags anyway. + # POS build requires Windows — no Forgejo runner for it; skipped silently. pos: name: POS (WPF, Windows) if: startsWith(github.ref, 'refs/tags/v') || github.event_name == 'workflow_dispatch' runs-on: windows-latest steps: - uses: actions/checkout@v4 - - - uses: actions/setup-dotnet@v4 - with: - dotnet-version: '8.0.x' - - - name: Restore - run: dotnet restore src/food-market.pos/food-market.pos.csproj - - name: Build POS - run: dotnet build src/food-market.pos/food-market.pos.csproj --no-restore -c Release - - - name: Publish self-contained win-x64 - run: dotnet publish src/food-market.pos/food-market.pos.csproj -c Release -r win-x64 --self-contained true -p:PublishSingleFile=true -o publish - - - name: Upload POS executable - uses: actions/upload-artifact@v4 - with: - name: food-market-pos-${{ github.sha }} - path: publish - retention-days: 14 + run: | + dotnet restore src/food-market.pos/food-market.pos.csproj + dotnet build src/food-market.pos/food-market.pos.csproj --no-restore -c Release + dotnet publish src/food-market.pos/food-market.pos.csproj -c Release -r win-x64 --self-contained true -p:PublishSingleFile=true -o publish