1
0
Fork 0

GH actions hell 2

This commit is contained in:
Pratham Patel 2024-02-20 20:04:54 +05:30
parent f8c3ae5d07
commit b68d02ca31
Signed by: thefossguy
SSH Key Fingerprint: SHA256:/B3wAg7jnMEBQ2JwkebbS/eXVZANDmqRfnd9QkIhxMI
1 changed files with 47 additions and 3 deletions

View File

@ -5,7 +5,9 @@ on:
- "*"
jobs:
build:
build-aarch64:
runs-on: ubuntu-latest
steps:
@ -15,5 +17,47 @@ jobs:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: DeterminateSystems/nix-installer-action@main
- run: nix flake check -L
- run: nix build -L
- name: Building aarch64 ISO
run: nix build .#packages.aarch64-linux.default
- name: Copying aarch64 ISO
run: cp result/iso/*.iso .
- uses: softprops/action-gh-release@v1
- name: Release aarch64 ISO
uses: softprops/action-gh-release@v1
with:
files: |
*.iso
- name: Collecting garbage
run: |
rm result
nix-collect-garbage -d
build-x86_64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v25
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: DeterminateSystems/nix-installer-action@main
- name: Building x86_64 ISO
run: nix build .#packages.x86_64-linux.default
- name: Copying x86_64 ISO
run: cp result/iso/*.iso .
- uses: softprops/action-gh-release@v1
- name: Release x86_64 ISO
uses: softprops/action-gh-release@v1
with:
files: |
*.iso
- name: Collecting garbage
run: |
rm result
nix-collect-garbage -d