Skip to content

Commit

Permalink
ci: Remove old release action
Browse files Browse the repository at this point in the history
  • Loading branch information
quodlibetor committed Feb 17, 2024
1 parent 4da9e99 commit ff699e3
Showing 1 changed file with 16 additions and 51 deletions.
67 changes: 16 additions & 51 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,63 +2,28 @@ name: Rust

on:
push:
branches: [ main ]
tags: [ v* ]
branches: [main]
pull_request:
branches: [ main ]

env:
RUST_BACKTRACE: 1
CARGO_TERM_COLOR: always
CLICOLOR: 1

jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
rustv: [stable, beta, nightly]
rustv: [stable, beta]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Install rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rustv }}
override: true
- name: Run cargo check
uses: actions-rs/cargo@v1
with:
command: check
- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: test

release:
needs: test
if: startsWith(github.ref, 'refs/tags/')
strategy:
matrix:
runner:
- os: ubuntu-16.04
target: x86_64-unknown-linux-gnu
- os: macos-10.15
target: x86_64-apple-darwin
runs-on: ${{ matrix.runner.os }}
env:
TARGET: ${{ matrix.runner.target }}
PROJECT_NAME: git-fixup
REF: ${{ github.ref }}
steps:
- uses: actions/checkout@v2
- name: Install rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: ${{ matrix.runner.target }}
override: true
- name: Build Release
run: ./ci/build-release-artifacts.sh
- name: Upload Release
uses: softprops/action-gh-release@v1
with:
files: |
deployment/*.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.rustv }}
override: true
- uses: swatinem/rust-cache@v2
- name: Test
run: cargo test

0 comments on commit ff699e3

Please sign in to comment.