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 97ccd6e
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/upload.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Upload Artifacts

on:
push:

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-widows && 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 Artifacts
uses: actions/upload-artifact@v3
with:
name: hydra-artifacts
path: testgen-hs-*.*

0 comments on commit 97ccd6e

Please sign in to comment.