diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml new file mode 100644 index 0000000..86404d6 --- /dev/null +++ b/.github/workflows/pr.yaml @@ -0,0 +1,20 @@ +on: + pull_request: + branches: + - main + +jobs: + release: + strategy: + matrix: + os: + - ubuntu-latest + - windows-latest + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + - run: cargo clippy + - run: cargo test diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..b3ef476 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,26 @@ +on: + push: + tags: + - "[0-9].[0-9]*" + +jobs: + release: + strategy: + matrix: + os: + - ubuntu-latest + - windows-latest + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + - run: cargo clippy + - run: cargo build --release + - uses: softprops/action-gh-release@v1 + with: + fail_on_unmatched_files: false + files: | + target/release/aztail + target/release/aztail.exe \ No newline at end of file