Skip to content

Commit

Permalink
include all 4 targets in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
DougAnderson444 committed Nov 11, 2024
1 parent 16d1ce5 commit 493aff5
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ on: [push, pull_request, workflow_dispatch]

name: CI Rust Workflow

env:
RUSTFLAGS: -D warnings
RUSTDOCFLAGS: -D warnings
# env:
# RUSTFLAGS: -D warnings
# RUSTDOCFLAGS: -D warnings

jobs:
# check:
Expand Down Expand Up @@ -95,7 +95,7 @@ jobs:
# - uses: actions-rs/toolchain@v1
# with:
# profile: minimal
# toolchain: 1.76.0
# toolchain: 1.80.0
# target: wasm32-unknown-unknown
# override: true
# - name: Download and install Trunk binary
Expand All @@ -109,8 +109,8 @@ jobs:
fail-fast: true
matrix:
include:
# - os: macos-latest
# TARGET: aarch64-apple-darwin
- os: macos-latest
TARGET: aarch64-apple-darwin

- os: ubuntu-latest
TARGET: aarch64-unknown-linux-gnu
Expand All @@ -121,9 +121,9 @@ jobs:
- os: ubuntu-latest
TARGET: x86_64-unknown-linux-gnu

# - os: windows-latest
# TARGET: x86_64-pc-windows-msvc
# EXTENSION: .exe
- os: windows-latest
TARGET: x86_64-pc-windows-msvc
EXTENSION: .exe

steps:
- name: Building ${{ matrix.TARGET }}
Expand Down Expand Up @@ -152,20 +152,20 @@ jobs:
cross build --verbose --release --target=${{ matrix.TARGET }}
- name: Rename
run: cp target/${{ matrix.TARGET }}/release/eframe_ci_test${{ matrix.EXTENSION }} eframe_ci_test-${{ matrix.TARGET }}${{ matrix.EXTENSION }}
run: cp target/${{ matrix.TARGET }}/release/egui-multinode${{ matrix.EXTENSION }} egui-multinode-${{ matrix.TARGET }}${{ matrix.EXTENSION }}

- uses: actions/upload-artifact@master
with:
name: eframe_ci_test-${{ matrix.TARGET }}${{ matrix.EXTENSION }}
path: eframe_ci_test-${{ matrix.TARGET }}${{ matrix.EXTENSION }}
name: egui-multinode-${{ matrix.TARGET }}${{ matrix.EXTENSION }}
path: egui-multinode-${{ matrix.TARGET }}${{ matrix.EXTENSION }}

- uses: svenstaro/upload-release-action@v2
name: Upload binaries to release
if: ${{ github.event_name == 'push' }}
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: eframe_ci_test-${{ matrix.TARGET }}${{ matrix.EXTENSION }}
asset_name: eframe_ci_test-${{ matrix.TARGET }}${{ matrix.EXTENSION }}
file: egui-multinode-${{ matrix.TARGET }}${{ matrix.EXTENSION }}
asset_name: egui-multinode-${{ matrix.TARGET }}${{ matrix.EXTENSION }}
tag: ${{ github.ref }}
prerelease: ${{ !startsWith(github.ref, 'refs/tags/') }}
overwrite: true

0 comments on commit 493aff5

Please sign in to comment.