From c97c0185f660eb1d75e50937e335a3d07bd05209 Mon Sep 17 00:00:00 2001 From: chyyran Date: Fri, 27 Sep 2024 00:22:29 -0400 Subject: [PATCH] ci: build cli --- .github/workflows/build.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4f6e875a..b189cafb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -42,6 +42,15 @@ jobs: with: name: ${{ format('librashader-{0}-{1}-{2}', matrix.output, github.sha, matrix.profile) }} path: ${{ format('target/{0}/librashader.*', matrix.profile) }} + - name: Build librashader CLI + if: matrix.profile == 'release' + run: cargo build -p librashader-cli --release --target aarch64-pc-windows-msvc -Zbuild-std + - name: Upload librashader-cli + uses: actions/upload-artifact@v3.1.2 + if: matrix.profile == 'release' + with: + name: ${{ format('librashader-cli-{0}-{1}', matrix.output, github.sha) }} + path: ${{ format('target/{0}/librashader-cli*', matrix.profile) }} build-ubuntu-arm64: strategy: matrix: @@ -73,6 +82,15 @@ jobs: with: name: ${{ format('librashader-aarch64-ubuntu-{0}-{1}', github.sha, matrix.profile) }} path: ${{ format('target/aarch64-unknown-linux-gnu/{0}/librashader.*', matrix.profile) }} + - name: Build librashader CLI + if: matrix.profile == 'release' + run: CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=/usr/bin/aarch64-linux-gnu-gcc cargo build -p librashader-cli --release --target aarch64-unknown-linux-gnu + - name: Upload librashader-cli + uses: actions/upload-artifact@v3.1.2 + if: matrix.profile == 'release' + with: + name: ${{ format('librashader-cli-aarch64-ubuntu-{0}', github.sha) }} + path: ${{ format('target/aarch64-unknown-linux-gnu/{0}/librashader-cli', matrix.profile) }} build-windows-arm64: strategy: matrix: @@ -95,6 +113,15 @@ jobs: with: name: ${{ format('librashader-aarch64-windows-{0}-{1}', github.sha, matrix.profile) }} path: ${{ format('target/aarch64-pc-windows-msvc/{0}/librashader.*', matrix.profile) }} + - name: Build librashader CLI + if: matrix.profile == 'release' + run: cargo build -p librashader-cli --release --target aarch64-pc-windows-msvc + - name: Upload librashader-cli + uses: actions/upload-artifact@v3.1.2 + if: matrix.profile == 'release' + with: + name: ${{ format('librashader-cli-aarch64-pc-windows-msvc-{0}', github.sha) }} + path: ${{ format('target/aarch64-pc-windows-msvc/{0}/librashader-cli.exe', matrix.profile) }} build-windows-7: strategy: matrix: @@ -117,3 +144,12 @@ jobs: with: name: ${{ format('librashader-x86_64-win7-windows-{0}-{1}', github.sha, matrix.profile) }} path: ${{ format('target/x86_64-win7-windows-msvc/{0}/librashader.*', matrix.profile) }} + - name: Build librashader CLI + if: matrix.profile == 'release' + run: cargo build -p librashader-cli --release --target aarch64-pc-windows-msvc -Zbuild-std + - name: Upload librashader-cli + uses: actions/upload-artifact@v3.1.2 + if: matrix.profile == 'release' + with: + name: ${{ format('librashader-cli-x86_64-win7-windows-msvc-{0}', github.sha) }} + path: ${{ format('target/x86_64-win7-windows-msvc/{0}/librashader-cli.exe', matrix.profile) }}