Use one FPC for all supported architectures #1
This file contains 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 toolchains for all supported architectures | ||
on: | ||
workflow_dispatch: | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
jobs: | ||
nix-matrix: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: nixbuild/nix-quick-install-action@v29 | ||
- name: Restore and save Nix store | ||
uses: nix-community/cache-nix-action@v5 | ||
with: | ||
primary-key: primary-key: build-${{ runner.os }}-${{ hashFiles('flake.nix') }} | ||
- name: Setup tmate session | ||
uses: mxschmitt/action-tmate@v3 | ||
- name: Build fpc-3_2_2 | ||
run: | | ||
nix build --verbose --show-trace --print-build-logs --print-out-paths .#universal.__archPkgs.fpc-3_2_2 | ||
- name: Build fpc-trunk | ||
run: | | ||
nix build --verbose --show-trace --print-build-logs --print-out-paths .#universal.__archPkgs.fpc-trunk | ||
- name: Build lazarus-3_6 | ||
run: | | ||
nix build --verbose --show-trace --print-build-logs --print-out-paths .#universal.__archPkgs.lazarus-3_6 |