Skip to content

Commit

Permalink
Merge workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
farshidtz committed Mar 5, 2024
1 parent 504ca10 commit 07f4479
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 39 deletions.
30 changes: 26 additions & 4 deletions .github/workflows/build-and-test-snap.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Snap Tester
name: Build&Test

on:
push:
Expand All @@ -14,7 +14,6 @@ jobs:
snap: ${{ steps.snapcraft.outputs.snap }}
runs-on: ubuntu-latest
steps:

- name: Checkout code
uses: actions/checkout@v4

Expand All @@ -25,15 +24,14 @@ jobs:
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ steps.snapcraft.outputs.snap }}
name: chip-tool_${{ github.run_number}}_amd64.snap
path: ${{ steps.snapcraft.outputs.snap }}
if-no-files-found: error

test:
needs: build
runs-on: ubuntu-latest
steps:

- name: Checkout code
uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -65,3 +63,27 @@ jobs:
with:
name: logs
path: tests/*.log

build-arm64:
needs: test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: arm64

- name: Build snap
uses: diddlesnaps/snapcraft-multiarch-action@v1
id: build
with:
architecture: arm64

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: chip-tool_${{ github.run_number}}_arm64.snap
path: ${{ steps.build.outputs.snap }}
35 changes: 0 additions & 35 deletions .github/workflows/build-arm64.yaml

This file was deleted.

0 comments on commit 07f4479

Please sign in to comment.