Skip to content

Commit

Permalink
ci: run build test on github
Browse files Browse the repository at this point in the history
  • Loading branch information
mahkoh committed Apr 21, 2024
1 parent 2fe8570 commit 3ee1666
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: build

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:

env:
CARGO_TERM_COLOR: always

jobs:
rustfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Show env
run: |
uname -a
ldd --version
- name: Install
run: |
sudo apt install -y libinput libpangocairo mesa libxkbcommon cmake
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly
rustup toolchain install nightly --allow-downgrade -c rustfmt
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Build
run: cargo build

0 comments on commit 3ee1666

Please sign in to comment.