Browse Source

Github workflow file based on example

from https://github.com/gcarreno/setup-lazarus
Azazorro 3 years ago
parent
commit
e4d4310243
1 changed files with 34 additions and 0 deletions
  1. 34 0
      .github/workflows/workflow.yml

+ 34 - 0
.github/workflows/workflow.yml

@@ -0,0 +1,34 @@
+name: build
+
+on:
+  pull_request:
+  push:
+    paths-ignore:
+    - "README.md"
+    branches:
+      - master
+      - Releases/*
+
+jobs:
+  build:
+    runs-on: ${{ matrix.operating-system }}
+    strategy:
+      matrix:
+        operating-system: [windows-latest,ubuntu-latest,macos-latest]
+        lazarus-versions: [stable, 2.0.10]
+    steps:
+    - uses: actions/checkout@v2
+    - name: Install Lazarus
+      uses: gcarreno/[email protected]
+      with:
+        lazarus-version: ${{ matrix.lazarus-versions }}
+    - name: Build the Pascal daemon
+      run: lazbuild -B "src/pascalcoin_daemon.lpi"
+    - name: Build reference Pascal Miner
+      run: lazbuild -B "src/pascalcoin_miner.lpi"
+    - name: Build the Main Wallet Application
+      if: ${{ matrix.operating-system != 'macos-latest' }}
+      run: lazbuild -B "src/pascalcoin_wallet_classic.lpi"
+    - name: Build the Main Wallet Application (macOS)
+      if: ${{ matrix.operating-system == 'macos-latest' }}
+      run: lazbuild -B --ws=cocoa "src/pascalcoin_wallet_classic.lpi"