fixing CI x8
This commit is contained in:
parent
60cc8c8488
commit
22037f76cc
1 changed files with 12 additions and 19 deletions
|
|
@ -1,4 +1,4 @@
|
|||
name: Cross-Compile for Windows with Podman
|
||||
name: Cross-Compile for Windows with Docker
|
||||
|
||||
on:
|
||||
push:
|
||||
|
|
@ -8,32 +8,25 @@ on:
|
|||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: docker
|
||||
container:
|
||||
image: ghcr.io/catthehacker/ubuntu:rust-22.04
|
||||
env:
|
||||
CROSS_CONTAINER_IN_CONTAINER: true
|
||||
DOCKER_HOST: tcp://10.98.213.2:2375
|
||||
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Check docker
|
||||
env:
|
||||
# DOCKER_HOST: tcp://docker:2375
|
||||
DOCKER_HOST: tcp://10.98.213.2:2375
|
||||
run: docker info
|
||||
|
||||
- name: Install Rust toolchain
|
||||
uses: https://github.com/actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
override: true
|
||||
components: rustfmt, clippy, rust-src
|
||||
|
||||
- name: Install cross
|
||||
run: cargo install cross
|
||||
|
||||
- name: Build with cross using Docker
|
||||
env:
|
||||
DOCKER_HOST: tcp://10.98.213.2:2375
|
||||
# DOCKER_HOST: tcp://docker:2375
|
||||
CROSS_CONTAINER_IN_CONTAINER: true
|
||||
run: cross build --target x86_64-pc-windows-gnu -r
|
||||
|
||||
- name: Upload Windows Binary
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: windows-binary
|
||||
path: target/x86_64-pc-windows-gnu/release/*.exe
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue