Skip to content

Commit

Permalink
Don't run CI on certain changes
Browse files Browse the repository at this point in the history
Also move the trunk build to build.yml
  • Loading branch information
melody-rs committed Nov 21, 2023
1 parent 2ee5469 commit 6c1dc04
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 25 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build-steam.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
on:
push:
branches: dev
paths-ignore:
- '.github/**'
- '.vscode/**'
- '**.md'
workflow_dispatch:

name: Autobuild Steam
Expand Down
35 changes: 33 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
on:
push:
paths-ignore:
- '.github/**'
- '.vscode/**'
- '**.md'
workflow_dispatch:

name: Autobuild
Expand Down Expand Up @@ -74,9 +78,36 @@ jobs:
- name: Setup artifact
run: |
mkdir -p ${{ github.workspace }}/artifact
cp ${{ github.workspace }}/target/release/luminol ${{ github.workspace }}/artifact\
cp ${{ github.workspace }}/target/release/luminol ${{ github.workspace }}/artifact
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: luminol-mac
path: ${{ github.workspace }}/artifact/
path: ${{ github.workspace }}/artifact/

build-trunk:
name: Build Trunk
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Install libraries
run: |
sudo apt update
sudo apt install libgtk-3-dev libatk1.0-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libspeechd-dev libxkbcommon-dev libssl-dev libasound2-dev clang mold -y
- uses: dtolnay/rust-toolchain@nightly
with:
toolchain: nightly-2023-09-12
targets: wasm32-unknown-unknown
components: rust-src
- name: Download and install Trunk binary
run: wget -qO- https://github.com/thedodd/trunk/releases/download/v0.17.5/trunk-x86_64-unknown-linux-gnu.tar.gz | tar -xzf-
- name: Rust Cache
uses: Swatinem/rust-cache@v2
- run: ./trunk build --release
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: luminol-trunk
path: ${{ github.workspace }}/dist/
31 changes: 8 additions & 23 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
on: [push, pull_request]
on:
push:
paths-ignore:
- '.github/**'
- '.vscode/**'
- '**.md'
pull_request:
workflow_dispatch:

name: CI

Expand Down Expand Up @@ -58,28 +65,6 @@ jobs:
uses: Swatinem/rust-cache@v2
- run: cargo test --lib --jobs 1

trunk:
name: Trunk
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Install libraries
run: |
sudo apt update
sudo apt install libgtk-3-dev libatk1.0-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libspeechd-dev libxkbcommon-dev libssl-dev libasound2-dev clang mold -y
- uses: dtolnay/rust-toolchain@nightly
with:
toolchain: nightly-2023-09-12
targets: wasm32-unknown-unknown
components: rust-src
- name: Download and install Trunk binary
run: wget -qO- https://github.com/thedodd/trunk/releases/download/v0.17.5/trunk-x86_64-unknown-linux-gnu.tar.gz | tar -xzf-
- name: Rust Cache
uses: Swatinem/rust-cache@v2
- run: ./trunk build

fmt:
name: Rustfmt
runs-on: ubuntu-latest
Expand Down

0 comments on commit 6c1dc04

Please sign in to comment.