Skip to content

remove iogx

remove iogx #258

Workflow file for this run

name: 'Partner Chains Smart Contracts CI'
on:
pull_request:
push:
branches:
- master
- develop
workflow_dispatch:
env:
AWS_DEFAULT_REGION: eu-central-1
jobs:
build-x64-linux:
permissions:
id-token: write
contents: read
runs-on: [ self-hosted, Linux ]
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
token: ${{ github.token }}
- name: Add signing key for nix
run: echo "${{ secrets.NIX_SIGNING_KEY }}" > "${{ runner.temp }}/nix-key"
- name: Run omnix to build all outputs
run: |
nix run github:juspay/omnix -- ci -v > ${{ runner.temp }}/outputs
- name: Acquire AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
aws-region: ${{ env.AWS_DEFAULT_REGION }}
- name: Copy nix scopes to nix cache
run: |
nix-store --stdin -q --deriver < ${{ runner.temp }}/outputs | nix-store --stdin -qR --include-outputs \
| nix copy --stdin --to \
"s3://cache.sc.iog.io?secret-key=${{ runner.temp }}/nix-key&region=$AWS_DEFAULT_REGION" \
&& rm ${{ runner.temp }}/outputs
test-x64-linux:
permissions:
id-token: write
contents: read
runs-on: [ self-hosted, Linux ]
needs:
- build-x64-linux
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
token: ${{ github.token }}
- name: Run tests
run: |
nix build .#check.x86_64-linux.pre-commit-check -L --fallback
nix build .#check.x86_64-linux.upToDatePlutusScriptCheck -L --fallback
nix build .#check.x86_64-linux.partner-chains-smart-contracts -L --fallback
build-arm64-darwin:
permissions:
id-token: write
contents: read
runs-on: [ self-hosted, macOS ]
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
token: ${{ github.token }}
- name: Add signing key for nix
run: echo "${{ secrets.NIX_SIGNING_KEY }}" > "${{ runner.temp }}/nix-key"
- name: Run omnix to build all outputs
run: |
nix run github:juspay/omnix -- ci -v > ${{ runner.temp }}/outputs
- name: Acquire AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
aws-region: ${{ env.AWS_DEFAULT_REGION }}
- name: Copy nix scopes to nix cache
run: |
nix-store --stdin -q --deriver < ${{ runner.temp }}/outputs | nix-store --stdin -qR --include-outputs \
| nix copy --stdin --to \
"s3://cache.sc.iog.io?secret-key=${{ runner.temp }}/nix-key&region=$AWS_DEFAULT_REGION" \
&& rm ${{ runner.temp }}/outputs
test-arm64-darwin:
permissions:
id-token: write
contents: read
runs-on: [ self-hosted, macOS ]
needs:
- build-arm64-darwin
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
token: ${{ github.token }}
- name: Run tests
run: |
nix build .#check.aarch64-darwin.pre-commit-check -L --fallback
nix build .#check.aarch64-darwin.upToDatePlutusScriptCheck -L --fallback
nix build .#check.aarch64-darwin.partner-chains-smart-contracts -L --fallback