From 6077c9bc29ef1a6e9a189c32b565192b69fe77ae Mon Sep 17 00:00:00 2001 From: pancake Date: Thu, 13 Jun 2024 15:43:06 +0200 Subject: [PATCH] Add CI --- .github/workflows/ci.yml | 61 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..5e4d2bc --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,61 @@ +name: CI + +on: + push: + branches: +# - master +# pull_request: +# schedule: +# - cron: '0 0 * * 1' + +jobs: + watchos: + runs-on: macos-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Building + run: make wch + - uses: actions/upload-artifact@v4 + with: + name: fsmon-wch + path: fsmon-wch + ios: + runs-on: macos-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Dependencies + run: | + git clone https://github.com/razum2um/ldid + cd ldid && make && cp -f ldid ldid2 /usr/local/bin + - name: Building + run: make ios + - uses: actions/upload-artifact@v4 + with: + name: fsmon-ios + path: fsmon-ios + macos: + runs-on: macos-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Building + run: make macos + - uses: actions/upload-artifact@v4 + with: + name: fsmon-macos + path: fsmon-macos + linux: + name: linux + continue-on-error: true + runs-on: ubuntu-20.04 + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Building + run: make && mv fsmon fsmon-linux + - uses: actions/upload-artifact@v4 + with: + name: fsmon-linux + path: fsmon-linux