ci x2
Some checks failed
Cross-Compile for Windows with Podman / build (push) Failing after 4s
neofetch demo / build (push) Waiting to run

This commit is contained in:
okhsunrog 2024-12-04 21:26:00 +03:00
parent b3817b2e71
commit c6719e69fb
2 changed files with 5 additions and 17 deletions

View file

@ -14,6 +14,9 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v3
- name: Check docker
run: docker info
- name: Install Rust toolchain
uses: https://github.com/actions-rs/toolchain@v1
with:
@ -21,26 +24,9 @@ jobs:
override: true
components: rustfmt, clippy, rust-src
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y podman uidmap fuse-overlayfs
mkdir -p ~/.config/containers
- name: Configure Rootless Podman
run: |
sudo sh -c "echo 'runner:100000:65536' >> /etc/subuid"
sudo sh -c "echo 'runner:100000:65536' >> /etc/subgid"
export XDG_RUNTIME_DIR=/tmp/runtime-runner
mkdir -p $XDG_RUNTIME_DIR
podman info
- name: Install cross
run: cargo install cross
- name: Build with cross using Podman
env:
CROSS_CONTAINER_ENGINE: podman
XDG_RUNTIME_DIR: /tmp/runtime-runner
run: cross build --target x86_64-pc-windows-gnu -r

View file

@ -14,3 +14,5 @@ jobs:
- name: Show neofetch
run: |
neofetch
pwd
ls ~