From f92cc77d9d3f98ae7f03c0c9ad5fc6e7f33a6ef0 Mon Sep 17 00:00:00 2001 From: Antonio De Lucreziis Date: Mon, 4 Mar 2024 19:36:36 +0100 Subject: [PATCH 1/4] add: github workflow --- .github/workflows/build.yml | 53 +++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..d28f7d9 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,53 @@ +name: Rust + +on: + push: + branches: + - main + pull_request: + +jobs: + lint: + name: Lint + runs-on: ubuntu-latest + steps: + - name: Setup | Checkout + uses: actions/checkout@v2 + - name: Setup | Rust + uses: ATiltedTree/setup-rust@v1 + with: + rust-version: stable + components: clippy + - name: Build | Lint + run: cargo clippy + compile: + name: Compile + runs-on: ubuntu-latest + steps: + - name: Setup | Checkout + uses: actions/checkout@v2 + - name: Setup | Rust + uses: ATiltedTree/setup-rust@v1 + with: + rust-version: stable + - name: Build | Compile + run: cargo check + test: + name: Test + strategy: + matrix: + rust: + - stable + - beta + - nightly + runs-on: ubuntu-latest + needs: [compile] + steps: + - name: Setup | Checkout + uses: actions/checkout@v2 + - name: Setup | Rust + uses: ATiltedTree/setup-rust@v1 + with: + rust-version: ${{ matrix.rust }} + - name: Build | Compile + run: cargo test From 3a4e4f2993b5e01f435599ba9a87dfa40c895f4f Mon Sep 17 00:00:00 2001 From: Antonio De Lucreziis Date: Mon, 4 Mar 2024 19:45:16 +0100 Subject: [PATCH 2/4] fix: github workflow --- .github/workflows/build.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d28f7d9..b5bf5db 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,6 +13,8 @@ jobs: steps: - name: Setup | Checkout uses: actions/checkout@v2 + - name: Install GTK4 dependencies + run: apt-get install -y libgtk-4-dev - name: Setup | Rust uses: ATiltedTree/setup-rust@v1 with: @@ -26,6 +28,8 @@ jobs: steps: - name: Setup | Checkout uses: actions/checkout@v2 + - name: Install GTK4 dependencies + run: apt-get install -y libgtk-4-dev - name: Setup | Rust uses: ATiltedTree/setup-rust@v1 with: @@ -34,20 +38,16 @@ jobs: run: cargo check test: name: Test - strategy: - matrix: - rust: - - stable - - beta - - nightly runs-on: ubuntu-latest needs: [compile] steps: - name: Setup | Checkout uses: actions/checkout@v2 + - name: Install GTK4 dependencies + run: apt-get install -y libgtk-4-dev - name: Setup | Rust uses: ATiltedTree/setup-rust@v1 with: - rust-version: ${{ matrix.rust }} + rust-version: stable - name: Build | Compile run: cargo test From a2f9db45510e157ee429958d56607261429bb24a Mon Sep 17 00:00:00 2001 From: Antonio De Lucreziis Date: Mon, 4 Mar 2024 19:45:53 +0100 Subject: [PATCH 3/4] fix: github workflow --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b5bf5db..d962e6b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,7 +14,7 @@ jobs: - name: Setup | Checkout uses: actions/checkout@v2 - name: Install GTK4 dependencies - run: apt-get install -y libgtk-4-dev + run: sudo apt-get install -y libgtk-4-dev - name: Setup | Rust uses: ATiltedTree/setup-rust@v1 with: @@ -29,7 +29,7 @@ jobs: - name: Setup | Checkout uses: actions/checkout@v2 - name: Install GTK4 dependencies - run: apt-get install -y libgtk-4-dev + run: sudo apt-get install -y libgtk-4-dev - name: Setup | Rust uses: ATiltedTree/setup-rust@v1 with: @@ -44,7 +44,7 @@ jobs: - name: Setup | Checkout uses: actions/checkout@v2 - name: Install GTK4 dependencies - run: apt-get install -y libgtk-4-dev + run: sudo apt-get install -y libgtk-4-dev - name: Setup | Rust uses: ATiltedTree/setup-rust@v1 with: From b6f1e096cac32b351e8565d6a55c544d85910c1b Mon Sep 17 00:00:00 2001 From: Antonio De Lucreziis Date: Mon, 4 Mar 2024 19:49:46 +0100 Subject: [PATCH 4/4] fix: github workflow --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d962e6b..93c9a4f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Setup | Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Install GTK4 dependencies run: sudo apt-get install -y libgtk-4-dev - name: Setup | Rust @@ -27,7 +27,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Setup | Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Install GTK4 dependencies run: sudo apt-get install -y libgtk-4-dev - name: Setup | Rust @@ -42,7 +42,7 @@ jobs: needs: [compile] steps: - name: Setup | Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Install GTK4 dependencies run: sudo apt-get install -y libgtk-4-dev - name: Setup | Rust