Skip to content

Commit

Permalink
ci: enable mac builds
Browse files Browse the repository at this point in the history
  • Loading branch information
nrdxp committed Jan 23, 2023
1 parent a94f585 commit e383249
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 9 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Standard CI

on:
push:
branches:
- master
workflow_dispatch:

jobs:
mac:
uses: ./.github/workflows/std.yml
with:
runs-on: macOS-12
secrets: inherit

linux:
uses: ./.github/workflows/std.yml
with:
runs-on: ubuntu-latest
secrets: inherit
20 changes: 11 additions & 9 deletions .github/workflows/std.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
name: Standard CI

on:
push:
branches:
- master
workflow_call:
inputs:
runs-on:
required: true
type: string

permissions:
contents: read
Expand All @@ -17,10 +19,10 @@ jobs:
hits: ${{ steps.discovery.outputs.hits }}
nix_conf: ${{ steps.discovery.outputs.nix_conf }}

runs-on: ubuntu-latest
runs-on: ${{ inputs.runs-on }}
steps:
- name: Standard Discovery
uses: divnix/std-action/[email protected].4
uses: divnix/std-action/[email protected].7
id: discovery


Expand All @@ -36,9 +38,9 @@ jobs:
matrix:
target: ${{ fromJSON(needs.discover.outputs.hits).packages.build }}
name: ${{ matrix.target.action }}->${{ matrix.target.cell }}.${{ matrix.target.block }}.${{ matrix.target.name }}
runs-on: ubuntu-latest
runs-on: ${{ inputs.runs-on }}
steps:
- uses: divnix/std-action/[email protected].4
- uses: divnix/std-action/[email protected].7
env:
AWS_ACCESS_KEY_ID: ${{ secrets.S3_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.S3_SECRET }}
Expand All @@ -61,9 +63,9 @@ jobs:
matrix:
target: ${{ fromJSON(needs.discover.outputs.hits).devshells.build }}
name: ${{ matrix.target.action }}->${{ matrix.target.cell }}.${{ matrix.target.block }}.${{ matrix.target.name }}
runs-on: ubuntu-latest
runs-on: ${{ inputs.runs-on }}
steps:
- uses: divnix/std-action/[email protected].4
- uses: divnix/std-action/[email protected].7
env:
AWS_ACCESS_KEY_ID: ${{ secrets.S3_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.S3_SECRET }}
Expand Down

0 comments on commit e383249

Please sign in to comment.