Skip to content

Test the modules on macos and linux #34

Test the modules on macos and linux

Test the modules on macos and linux #34

Workflow file for this run

name: Release
on:
workflow_dispatch:
push:
branches:
- "*"
tags:
- "v*.*.*"
pull_request:
types:
- opened
- reopened
- synchronize
- labeled
jobs:
build:
runs-on: macos-12
permissions:
contents: read
id-token: write # In order to request a JWT for AWS auth
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- run: |
set -eux
# Ensure all the checks can be built without internet
nix flake check --all-systems --max-jobs 0
nix build .#tarballs_json
cat result
nix build .#closures_json
cat result
nix build .#closures_nix
cat result
mkdir ./artifacts
cat './result' > './artifacts/universal'
nix eval -f ./artifacts/universal
- uses: DeterminateSystems/push-artifact-ids@main
if: ${{ startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main' }}
with:
s3_upload_role: ${{ secrets.AWS_S3_UPLOAD_ROLE }}
bucket: ${{ secrets.AWS_S3_UPLOAD_BUCKET }}
directory: ./artifacts
ids_project_name: nix-upgrade
ids_binary_prefix: determinate-nix-versions.nix