ci: install shaderc #7
Workflow file for this run
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
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 |