-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |