Przeglądaj źródła

try qemu static from GH action

jamesread 4 lat temu
rodzic
commit
aef1e4db1b
1 zmienionych plików z 7 dodań i 3 usunięć
  1. 7 3
      .github/workflows/build-snapshot.yml

+ 7 - 3
.github/workflows/build-snapshot.yml

@@ -3,14 +3,18 @@ name: "Build Snapshot"
 on: [push]
 
 jobs:
-  rcbuild:
+  build-snapshot:
     runs-on: ubuntu-latest
     steps:
       - name: Checkout
         uses: actions/checkout@v2
 
-      - name: qemu static
-        run: sudo apt install -y qemu-user-static
+        name: Set up QEMU
+        id: qemu
+        uses: docker/setup-qemu-action@v1
+        with:
+          image: tonistiigi/binfmt:latest
+          platforms: arm64,arm
 
       - name: Setup Go
         uses: actions/setup-go@v2