Skip to content

Commit

Permalink
ci: update Cross config
Browse files Browse the repository at this point in the history
  • Loading branch information
oknozor committed Jan 25, 2024
1 parent 75c73ac commit 8924820
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:

env:
CARGO_TERM_COLOR: always
CROSS_CONFIG: Cross.toml

jobs:
upload_license:
Expand Down Expand Up @@ -47,10 +48,6 @@ jobs:
toolchain: stable
target: ${{ matrix.target }}

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install libxkbcommon-dev libvulkan1 mesa-vulkan-drivers libegl1-mesa-dev

- uses: actions-rs/cargo@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@ jobs:
# env:
# COMMIT_MESSAGE: "chore: update gh-pages"
# ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# BUILD_SCRIPT: cd docs && yarn && yarn docs:build
# BUILD_SCRIPT: cd guide && yarn && yarn guide:build
# BUILD_DIR: website/.vuepress/dist/
12 changes: 12 additions & 0 deletions Cross.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[target.x86_64-unknown-linux-gnu]
image = "ubuntu:latest"
pre-build = ["apt-get update && apt-get -y install libxkbcommon-dev libvulkan1 mesa-vulkan-drivers libegl1-mesa-dev gcc"]

[target.x86_64-unknown-linux-musl]
image = "ubuntu:latest"
pre-build = ["apt-get update && apt-get -y install libxkbcommon-dev libvulkan1 mesa-vulkan-drivers libegl1-mesa-dev gcc"]

[target.armv7-unknown-linux-musleabihf-unknown-linux-gnu]
image = "ubuntu:latest"
pre-build = ["apt-get update && apt-get -y install libxkbcommon-dev libvulkan1 mesa-vulkan-drivers libegl1-mesa-dev gcc"]

0 comments on commit 8924820

Please sign in to comment.