Skip to content

Commit

Permalink
Updated release workflow according to build one
Browse files Browse the repository at this point in the history
  • Loading branch information
Riduidel committed Apr 1, 2020
1 parent d3b203e commit 132b2cb
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/on_release_created.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 132b2cb

Please sign in to comment.