summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorpml68 <contact@pml68.dev>2025-01-13 00:51:50 +0100
committerpml68 <contact@pml68.dev>2025-01-13 00:51:50 +0100
commitabd22355755221a35c8328b8b209391bab4d89ee (patch)
tree959f6cf85fb17e61329100dff75fa554f5d5cb01 /.github
parentMerge pull request #5 from pml68/feat/config (diff)
downloadiced-builder-abd22355755221a35c8328b8b209391bab4d89ee.tar.gz
ci: add build and lint workflows
Diffstat (limited to '')
-rw-r--r--.github/workflows/build.yml29
-rw-r--r--.github/workflows/lint.yml17
2 files changed, 46 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 0000000..ed56730
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,29 @@
+name: Build
+on:
+ push:
+ branches:
+ - master
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ toolchain: [stable, nightly]
+ steps:
+ - uses: hecrj/setup-rust-action@v2
+ with:
+ rust-version: ${{ matrix.toolchain }}
+ - uses: actions/checkout@master
+ - name: Install dependencies
+ run: |
+ export DEBIAN_FRONTED=noninteractive
+ sudo apt-get -qq update
+ sudo apt-get install -y libxkbcommon-dev libgtk-3-dev
+ - name: Build iced-builder binary
+ run: cargo build --verbose --release
+ - name: Archive iced-builder binary
+ uses: actions/upload-artifact@v4
+ with:
+ name: iced-builder-x86_64-unknown-linux-gnu
+ path: target/release/iced-builder
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
new file mode 100644
index 0000000..4647a07
--- /dev/null
+++ b/.github/workflows/lint.yml
@@ -0,0 +1,17 @@
+name: Lint
+on: [push, pull_request]
+jobs:
+ lint:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: hecrj/setup-rust-action@v2
+ with:
+ components: clippy
+ - uses: actions/checkout@master
+ - name: Install dependencies
+ run: |
+ export DEBIAN_FRONTED=noninteractive
+ sudo apt-get -qq update
+ sudo apt-get install -y libxkbcommon-dev libgtk-3-dev
+ - name: Check lints
+ run: cargo lint