-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
39 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,9 +51,42 @@ jobs: | |
run: cd backend && just ci-test | ||
- name: Run Frontend Test | ||
run: cargo test -p frontend | ||
- name: build plugin | ||
run: cd judger && just build-plugin | ||
- name: Run Judger test | ||
run: cd judger && just ci-test | ||
- name: Run testsuit | ||
run: cd testsuit && just ci-run | ||
run: cd testsuit && just ci-run | ||
- name: Build judger binary | ||
run: cargo install --target $(uname -m)-unknown-linux-musl --path judger | ||
- name: Build backend binary | ||
run: cargo install --target $(uname -m)-unknown-linux-musl --path backend | ||
- name: Get current date | ||
id: date | ||
run: echo "::set-output name=date::$(date +'%Y-%m-%d')" | ||
- name: Create Draft Release | ||
id: release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: staging-${{ steps.date.outputs.date }} | ||
release_name: staging-${{ steps.date.outputs.date }} | ||
draft: true | ||
prerelease: false | ||
- name: upload judger | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.release.outputs.upload_url }} | ||
asset_path: target/x86_64-unknown-linux-musl/release/judger | ||
asset_name: mdoj-judger | ||
asset_content_type: application/octet-stream | ||
- name: upload backend | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.release.outputs.upload_url }} | ||
asset_path: target/x86_64-unknown-linux-musl/release/backend | ||
asset_name: mdoj-backend | ||
asset_content_type: application/octet-stream |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters