jpcaulfi 2 years ago
parent
commit
9a5d829c7b
1 changed files with 32 additions and 0 deletions
  1. 32 0
      .github/workflows/native.yml

+ 32 - 0
.github/workflows/native.yml

@@ -0,0 +1,32 @@
+name: Native Programs
+
+on:
+  push:
+    branches: ["main"]
+  pull_request:
+    branches: ["main"]
+
+env:
+  CARGO_TERM_COLOR: always
+
+jobs:
+  build:
+    name: Build
+    runs-on: solanadevelopers/solana-workshop-image
+    strategy:
+      matrix:
+        {
+          dir:
+            [
+              "basics/account-data/native/program",
+              "basics/checking-accounts/native/program",
+            ],
+        }
+
+    steps:
+      - name: Checkout code
+        uses: actions/checkout@v3
+
+      - name: Build program
+        working-directory: ${{ matrix.dir }}
+        run: cargo build-sbf --verbose