ci x2
This commit is contained in:
parent
b3817b2e71
commit
c6719e69fb
2 changed files with 5 additions and 17 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -14,3 +14,5 @@ jobs:
|
|||
- name: Show neofetch
|
||||
run: |
|
||||
neofetch
|
||||
pwd
|
||||
ls ~
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue