Skip to content

Commit

Permalink
build.yml -> ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jesse-wei committed Nov 23, 2023
1 parent 11b80f1 commit 64728a3
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 37 deletions.
2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Our dependencies are listed in [pom.xml](../pom.xml). This project has to work a

### Automatic

Building occurs automatically via a GitHub Action (see [build.yml](workflows/build.yml)) that uses Maven. As long as users have a compatible Java version (17+, with JavaFX bundled), that JAR should work on all OS's and architectures (x86 and ARM64).
Building occurs automatically via a GitHub Action (see [build.yml](workflows/ci.yml)) that uses Maven. As long as users have a compatible Java version (17+, with JavaFX bundled), that JAR should work on all OS's and architectures (x86 and ARM64).

### Manual

Expand Down
72 changes: 36 additions & 36 deletions .github/workflows/build.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
name: Build JAR with Maven

on:
workflow_dispatch:
push:
pull_request:

jobs:
build:
runs-on: [ubuntu-latest]
steps:
- name: Checkout Git repository
uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: 17.0.9
distribution: 'liberica'
java-package: jdk+fx
cache: 'maven'

- name: Build JAR with Maven
run: mvn -B clean package --file pom.xml

- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: ${{ github.event.repository.name }}
path: target/dependency/mips-emulator*dependencies*.jar

markdown-link-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: gaurav-nelson/github-action-markdown-link-check@v1
name: CI

on:
workflow_dispatch:
push:
pull_request:

jobs:
build:
runs-on: [ubuntu-latest]
steps:
- name: Checkout Git repository
uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: 17.0.9
distribution: 'liberica'
java-package: jdk+fx
cache: 'maven'

- name: Build JAR with Maven
run: mvn -B clean package --file pom.xml

- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: ${{ github.event.repository.name }}
path: target/dependency/mips-emulator*dependencies*.jar

markdown-link-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: gaurav-nelson/github-action-markdown-link-check@v1

0 comments on commit 64728a3

Please sign in to comment.