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 bf07af4
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: build

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

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Show env
run: |
uname -a
ldd --version
env
- name: Install
run: |
sudo apt update
sudo apt install -y libinput10-dev libpangocairo-1.0-0-dev libudev1-dev libxkbcommon0-dev
curl https://sh.rustup.rs -sSf | sh -s -- -y
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Fixup opt levels
run: |
sed -i 's/opt-level = 3/opt-level = 0/' Cargo.toml
cat Cargo.toml
- name: Build
run: cargo build --timings
- name: Archive cargo-timings
uses: actions/upload-artifact@v4
with:
name: cargo-timings
path: |
target/cargo-timings

0 comments on commit bf07af4

Please sign in to comment.