From 132b2cb2bc3b5c8495a34e0d1e79c0a7b8afab48 Mon Sep 17 00:00:00 2001 From: Nicolas Delsaux Date: Wed, 1 Apr 2020 14:14:18 +0200 Subject: [PATCH] Updated release workflow according to build one --- .github/workflows/on_release_created.yml | 25 ++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/.github/workflows/on_release_created.yml b/.github/workflows/on_release_created.yml index 507be97..83bbd46 100644 --- a/.github/workflows/on_release_created.yml +++ b/.github/workflows/on_release_created.yml @@ -13,42 +13,43 @@ jobs: strategy: matrix: config: - - { os: ubuntu-latest, name: rrss2imap_linux, path: target/release/rrss2imap} - - { os: macOS-latest, name: rrss2imap_macOS, path: target/release/rrss2imap} - - { os: windows-latest, name: rrss2imap.exe, path: target/release/rrss2imap.exe} + # See https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners + - { os: ubuntu-18.04, name: rrss2imap_linux, path: target/debug/rrss2imap} + - { os: macOS-10.15, name: rrss2imap_macOS, path: target/debug/rrss2imap} + - { os: windows-2019, name: rrss2imap.exe, path: target/debug/rrss2imap.exe} # And this one is the dreaded Raspbian one ... - - { os: ubuntu-latest, name: rrss2imap_raspbian, path: target/armv7-unknown-linux-gnueabihf/release/rrss2imap, target: armv7-unknown-linux-gnueabihf, linker: gcc-arm-linux-gnueabihf} + - { os: ubuntu-18.04, name: rrss2imap_raspbian, path: target/armv7-unknown-linux-gnueabihf/debug/rrss2imap, target: armv7-unknown-linux-gnueabihf, linker: gcc-arm-linux-gnueabihf} steps: - name: Install linker - run: sudo apt-get install -qq ${{matrix.config.linker}} + run: sudo apt-get update && sudo apt-get install ${{matrix.config.linker}} if: matrix.config.linker!=null - - uses: actions-rs/toolchain@v1 + - uses: actions-rs/toolchain@v1.0.6 with: toolchain: stable - target: armv7-unknown-linux-gnueabihf + target: ${{matrix.config.target}} override: true if: matrix.config.target!=null - - uses: actions-rs/toolchain@v1 + - uses: actions-rs/toolchain@v1.0.6 with: toolchain: stable if: matrix.config.target==null - uses: actions/checkout@master # see https://github.com/marketplace/actions/rust-cargo - - uses: actions-rs/cargo@v1 + - uses: actions-rs/cargo@v1.0.1 with: command: build args: --release --all-features if: matrix.config.target==null - - uses: actions-rs/cargo@v1 + - uses: actions-rs/cargo@v1.0.1 with: use-cross: true command: build args: --release --all-features --target ${{matrix.config.target}} if: matrix.config.target!=null - - uses: olegtarasov/get-tag@v1 + - uses: olegtarasov/get-tag@v2 - run: find target - name: Upload matrix release asset - uses: actions/upload-release-asset@v1.0.1 + uses: actions/upload-release-asset@v1.0.2 env: GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }} with: