Skip to content

Commit

Permalink
chore: publish artifacts on GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
michalrus committed Nov 26, 2024
1 parent fbeede9 commit f1129b8
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/upload.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Upload Artifacts
on:
push:
env:
GH_TOKEN: ${{ github.token }}
jobs:
hydra-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
with:
extra-conf: |
substituters = https://cache.nixos.org https://cache.iog.io
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=
- name: Wait for Hydra
uses: input-output-hk/actions/wait-for-hydra@latest
with:
check: "ci/hydra-build:required"
- name: Download Artifacts from Hydra
run: |
nix build --builders "" --max-jobs 0 .#hydraJobs.testgen-hs.x86_64-linux && cp result/testgen-hs-*.* .
nix build --builders "" --max-jobs 0 .#hydraJobs.testgen-hs.x86_64-windows && cp result/testgen-hs-*.* .
nix build --builders "" --max-jobs 0 .#hydraJobs.testgen-hs.x86_64-darwin && cp result/testgen-hs-*.* .
nix build --builders "" --max-jobs 0 .#hydraJobs.testgen-hs.aarch64-darwin && cp result/testgen-hs-*.* .
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: testgen-hs-aarch64-darwin.tar.gz
path: testgen-hs-aarch64-darwin.tar.gz
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: testgen-hs-x86_64-darwin.tar.gz
path: testgen-hs-x86_64-darwin.tar.gz
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: testgen-hs-x86_64-linux.tar.gz
path: testgen-hs-x86_64-linux.tar.gz
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: testgen-hs-x86_64-windows.tar.gz
path: testgen-hs-x86_64-windows.tar.gz
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
programs.ormolu.enable = true; # Haskell
programs.cabal-fmt.enable = true;
programs.shfmt.enable = true;
programs.yamlfmt.enable = true;
};
};

Expand Down

0 comments on commit f1129b8

Please sign in to comment.