Skip to content

Commit

Permalink
use nix develop to fix builds
Browse files Browse the repository at this point in the history
  • Loading branch information
mpscholten committed Jul 13, 2023
1 parent 91dcfc5 commit 384072c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 17 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ jobs:
name: digitallyinduced
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Install devenv.sh
run: nix profile install --accept-flake-config github:cachix/devenv/latest
if: matrix.os != 'ARM64'
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
Expand All @@ -30,11 +27,11 @@ jobs:
- name: Build Docs
run: |
cd $GITHUB_WORKSPACE
devenv shell build-guide
nix develop --impure --command build-guide
- name: Build API Reference
run: |
cd $GITHUB_WORKSPACE
devenv shell build-api-reference
nix develop --impure --command build-api-reference
tar -czvf api-reference.tar.gz haddock-build
- name: Uploading to S3
run: |
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/ihp-new.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ jobs:
name: digitallyinduced
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Install devenv.sh
run: nix profile install --accept-flake-config github:cachix/devenv/latest
if: matrix.os != 'ARM64'
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
Expand All @@ -30,6 +27,6 @@ jobs:
- name: Build ihp-new Package
run: |
cd $GITHUB_WORKSPACE
devenv shell build-ihp-new
nix develop --impure --command build-ihp-new
- name: Uploading ihp-new Package
run: aws s3 cp ./ProjectGenerator/tarball.tar.gz s3://${{ secrets.S3_BUCKET }}/ihp-new.tar.gz
5 changes: 1 addition & 4 deletions .github/workflows/pr_compile_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,8 @@ jobs:
with:
name: digitallyinduced
skipPush: true
- name: Install devenv.sh
run: nix profile install --accept-flake-config github:cachix/devenv/latest
if: matrix.os != 'ARM64'
- run: |
cd $GITHUB_WORKSPACE
mkdir -p ~/.config/nixpkgs
echo "{ allowBroken = true; }" >> ~/.config/nixpkgs/config.nix
devenv shell fastbuild
nix develop --impure --command fastbuild
5 changes: 1 addition & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,4 @@ jobs:
name: digitallyinduced
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Install devenv
run: nix profile install --accept-flake-config github:cachix/devenv/latest
if: matrix.os != 'ARM64'
- run: devenv shell tests
- run: nix develop --impure --command tests

0 comments on commit 384072c

Please sign in to comment.