Skip to content

Commit

Permalink
Add arm?
Browse files Browse the repository at this point in the history
  • Loading branch information
BatteredBunny committed Jun 25, 2023
1 parent 8720dff commit ceebf6c
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion .github/workflows/flake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
branches:
- master
jobs:
tests:
x86:
runs-on: ubuntu-latest
steps:
- name: checkout repo
Expand All @@ -21,3 +21,35 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: build and push container
run: nix run .#docker.copyToRegistry
arm:
runs-on: ubuntu-latest
steps:
- uses: uraimo/run-on-arch-action@v2
name: Run commands
id: runcmd
with:
arch: arm64
distro: ubuntu-latest

# Not required, but speeds up builds by storing container images in
# a GitHub package registry.
githubToken: ${{ github.token }}

# Set an output parameter `uname` for use in subsequent steps
run: |
uname -a
echo ::set-output name=uname::$(uname -a)
- name: checkout repo
uses: actions/checkout@v3
- name: install nix
uses: cachix/install-nix-action@v22
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Login to registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: build and push container
run: nix run .#docker.copyToRegistry

0 comments on commit ceebf6c

Please sign in to comment.