From d0ad32f12ff5a37f9533a77beda044d34e5b4960 Mon Sep 17 00:00:00 2001 From: dbalsom Date: Sat, 9 Mar 2024 10:41:51 -0500 Subject: [PATCH] adjust workflow builds to add more files and enable lto --- .github/workflows/linux.yml | 12 +++--------- .github/workflows/macos.yml | 16 +++++----------- .github/workflows/windows.yml | 12 +++--------- 3 files changed, 11 insertions(+), 29 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 124c663b..6365d1a2 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -27,16 +27,10 @@ jobs: libudev-dev - name: Cargo build - run: cargo build -r --profile release-lto --features ega + run: cargo build --profile release-lto --features ega - - name: Copy README into install dir - run: cp README.md target/release/martypc install - - - name: Copy CHANGELOG into install dir - run: cp CHANGELOG.md target/release/martypc install - - - name: Copy CREDITS into install dir - run: cp CREDITS.md target/release/martypc install + - name: Copy files into install dir + run: cp LICENSE README.md CHANGELOG.md CREDITS.md target/release-lto/martypc install - name: Rename install directory run: mv install martypc diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index fa2ea9c1..fcdc48b6 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -21,10 +21,10 @@ jobs: fetch-depth: 0 - name: Cargo build - run: cargo build -r --features ega + run: cargo build --profile release-lto --features ega - name: Copy files into install dir - run: cp README.md target/release/martypc install + run: cp LICENSE README.md CHANGELOG.md CREDITS.md target/release-lto/martypc install - name: Rename install directory run: mv install martypc @@ -55,16 +55,10 @@ jobs: fetch-depth: 0 - name: Cargo build - run: cargo build -r --profile release-lto --features ega + run: cargo build --profile release-lto --features ega - - name: Copy README into install dir - run: cp README.md target/release/martypc install - - - name: Copy CHANGELOG into install dir - run: cp CHANGELOG.md target/release/martypc install - - - name: Copy CREDITS into install dir - run: cp CREDITS.md target/release/martypc install + - name: Copy files into install dir + run: cp LICENSE README.md CHANGELOG.md CREDITS.md target/release-lto/martypc install - name: Rename install directory run: mv install martypc diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 44412d10..f161854b 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -39,16 +39,10 @@ jobs: fetch-depth: 0 - name: Cargo build - run: cargo build -r --profile release-lto --features ega + run: cargo build --profile release-lto --features ega - - name: Copy README into install dir - run: cp README.md target/release/martypc install - - - name: Copy CHANGELOG into install dir - run: cp CHANGELOG.md target/release/martypc install - - - name: Copy CREDITS into install dir - run: cp CREDITS.md target/release/martypc install + - name: Copy files into install dir + run: cp LICENSE README.md CHANGELOG.md CREDITS.md target/release-lto/martypc install - name: Rename install directory run: mv install martypc