Skip to content

Commit

Permalink
fix: only ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
xilosada committed Jun 10, 2024
1 parent 122553c commit 44faa18
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions .github/workflows/desktop_artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
target: [x86_64-unknown-linux-gnu, aarch64-unknown-linux-gnu, x86_64-pc-windows-msvc]
target: [x86_64-unknown-linux-gnu, aarch64-unknown-linux-gnu]

steps:
- name: Checkout code
Expand All @@ -36,16 +36,6 @@ jobs:
sudo apt-get update
sudo apt-get install -y gcc-aarch64-linux-gnu
- name: Install cross-compilation tools for Windows
if: matrix.target == 'x86_64-pc-windows-msvc'
run: |
sudo apt-get update
sudo apt-get install -y mingw-w64
sudo apt-get install -y wine
wget https://github.com/Jake-Shadle/xwin/releases/download/0.6.0/xwin-0.6.0-x86_64-pc-windows-msvc.tar.gz
mkdir -p $HOME/xwin
tar -xzf xwin-0.6.0-x86_64-pc-windows-msvc.tar.gz -C $HOME/xwin
- name: Cache cargo registry
uses: actions/cache@v3
with:
Expand All @@ -63,9 +53,6 @@ jobs:
restore-keys: ${{ runner.os }}-cargo-build-

- name: Build the crate
env:
CARGO_TARGET_X86_64_PC_WINDOWS_MSVC_LINKER: $HOME/xwin/xwin-0.6.0-x86_64-pc-windows-msvc/xwin.exe
CARGO_TARGET_X86_64_PC_WINDOWS_MSVC_RUNNER: wine
run: cargo build -p calimero-node --release --target ${{ matrix.target }}

- name: Upload binary
Expand Down

0 comments on commit 44faa18

Please sign in to comment.