Skip to content

Commit

Permalink
Merge pull request #1 from piyoppi/add-workflows
Browse files Browse the repository at this point in the history
Add continuous testing workflow
  • Loading branch information
piyoppi committed Mar 3, 2024
2 parents 24eb615 + 86b109d commit 99182af
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/release-nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Release-Nightly

on:
push:
branches:
- main

jobs:
build:
name: Build and Release
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Build
run: cargo build --release

- name: Upload Release Asset
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os}}-binary
path: target/release/chiritori

release:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Download Artifacts (ubuntu-latest-binary)
uses: actions/download-artifact@v4
with:
name: ubuntu-latest-binary
path: target/release/ubuntu-latest

- name: Download Artifacts (macos-latest-binary)
uses: actions/download-artifact@v4
with:
name: macos-latest-binary
path: target/release/macos-latest

- name: Create Release
uses: softprops/action-gh-release@v1
with:
tag_name: nightly
draft: true
prerelease: true
#files: |
# target/release/ubuntu-latest/*
# target/release/macos-latest/*
21 changes: 21 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: test

on:
push:
branches:
- main
pull_request:
branches:
- main

env:
CARGO_TERM_COLOR: always

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Run tests
run: cargo test --verbose

0 comments on commit 99182af

Please sign in to comment.