From 939decf8210de49b097f9687fdf558f023a7adca Mon Sep 17 00:00:00 2001 From: Henrik Klarup Date: Fri, 20 Mar 2020 19:55:10 +0100 Subject: [PATCH] Relase binaries --- .github/workflows/rust.yml | 114 +++++++++++++++++++++---------------- 1 file changed, 66 insertions(+), 48 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 6936275..55c7dca 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -10,9 +10,9 @@ jobs: matrix: target: - x86_64-unknown-linux-gnu - - x86_64-unknown-linux-musl + - x86_64-unknown-linux-musl # - i686-unknown-linux-gnu - # - i686-unknown-linux-musl + # - i686-unknown-linux-musl steps: - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 @@ -25,53 +25,71 @@ jobs: use-cross: true command: build args: --release --target=${{ matrix.target }} --manifest-path ./fpie/Cargo.toml - build-osx: - name: Build osx - runs-on: macos-latest - strategy: - matrix: - target: - - x86_64-apple-darwin - steps: - - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 + - uses: actions/upload-artifact@v1 with: - toolchain: stable - target: ${{ matrix.target }} - override: true - - uses: actions-rs/cargo@v1 - with: - use-cross: true - command: build - args: --release --target=${{ matrix.target }} --manifest-path ./fpie/Cargo.toml - build-win: - name: Build win - runs-on: windows-latest - strategy: - matrix: - target: - # - i686-pc-windows-gnu - # - i686-pc-windows-msvc - # - x86_64-pc-windows-gnu - - x86_64-pc-windows-msvc + name: ${{ matrix.target }} + path: ./fpie/target/${{ matrix.target }}/release/fpie + # build-osx: + # name: Build osx + # runs-on: macos-latest + # strategy: + # matrix: + # target: + # - x86_64-apple-darwin + # steps: + # - uses: actions/checkout@v2 + # - uses: actions-rs/toolchain@v1 + # with: + # toolchain: stable + # target: ${{ matrix.target }} + # override: true + # - uses: actions-rs/cargo@v1 + # with: + # use-cross: true + # command: build + # args: --release --target=${{ matrix.target }} --manifest-path ./fpie/Cargo.toml + # build-win: + # name: Build win + # runs-on: windows-latest + # strategy: + # matrix: + # target: + # # - i686-pc-windows-gnu + # # - i686-pc-windows-msvc + # # - x86_64-pc-windows-gnu + # - x86_64-pc-windows-msvc + # steps: + # - uses: actions/checkout@v2 + # - uses: actions-rs/toolchain@v1 + # with: + # toolchain: stable + # target: ${{ matrix.target }} + # override: true + # - uses: actions-rs/cargo@v1 + # with: + # use-cross: true + # command: build + # args: --release --target=${{ matrix.target }} --manifest-path ./fpie/Cargo.toml + # test: + # name: Test + # runs-on: ubuntu-latest + # env: + # working-directory: ./fpie + # steps: + # - uses: actions/checkout@v2 + # - name: Run tests + # run: cargo test --verbose --manifest-path ./fpie/Cargo.toml + + release: + name: Release + runs-on: ubuntu-latest + needs: [ build-linux ] steps: - - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 + - uses: actions/download-artifact@v2-preview with: - toolchain: stable - target: ${{ matrix.target }} - override: true - - uses: actions-rs/cargo@v1 + path: artifacts + - uses: ncipollo/release-action@v1 with: - use-cross: true - command: build - args: --release --target=${{ matrix.target }} --manifest-path ./fpie/Cargo.toml - test: - name: Test - runs-on: ubuntu-latest - env: - working-directory: ./fpie - steps: - - uses: actions/checkout@v2 - - name: Run tests - run: cargo test --verbose --manifest-path ./fpie/Cargo.toml + artifacts: "./artifacts/*" + tag: "v1" + token: ${{ secrets.GITHUB_TOKEN }}