summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyze <50497128+ryze312@users.noreply.github.com>2024-06-25 02:29:10 +0300
committerRyze <50497128+ryze312@users.noreply.github.com>2024-06-25 03:22:00 +0300
commitbbc2058112d1e4c12decf2e37b7c9eb7dd40aa2c (patch)
treea6ffe5b0ff0fd85d987f19f395dd753cc91f95e6
parentd6a0515c06955fe524a1ae6b876637550385c82c (diff)
downloadwhere-rs-bbc2058112d1e4c12decf2e37b7c9eb7dd40aa2c.tar.gz
where-rs-bbc2058112d1e4c12decf2e37b7c9eb7dd40aa2c.tar.bz2
where-rs-bbc2058112d1e4c12decf2e37b7c9eb7dd40aa2c.zip
Add build workflow
-rw-r--r--.github/workflows/build_where.yml40
1 files changed, 40 insertions, 0 deletions
diff --git a/.github/workflows/build_where.yml b/.github/workflows/build_where.yml
new file mode 100644
index 0000000..6ebb475
--- /dev/null
+++ b/.github/workflows/build_where.yml
@@ -0,0 +1,40 @@
+name: Build where
+
+on:
+ push:
+ branches: [ mane ]
+ pull_request:
+ branches: [ mane ]
+
+env:
+ CARGO_TERM_COLOR: always
+
+jobs:
+ build:
+ runs-on: ${{ matrix.os }}
+
+ strategy:
+ matrix:
+ os: [ ubuntu-latest, macos-latest ]
+ profile: [ dev, release ]
+
+ steps:
+ - uses: actions/checkout@v4
+ - name: Build
+ run: cargo build --all --profile ${{ matrix.profile }}
+ - name: Check
+ run: cargo clippy --profile ${{ matrix.profile }} -- -D warnings
+ - name: Test message exchange
+ working-directory: target/${{ matrix.profile == 'dev' && 'debug' || matrix.profile }}
+ run: |
+ ./where -c
+ ./whered &
+
+ i=0
+ while [ ! $(pgrep whered) ] && [ $i -lt 10 ]
+ do
+ sleep 1
+ ((i++))
+ done
+
+ ./where