Skip to content

Commit

Permalink
Update and rename main.yml to build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-mcgill authored Nov 21, 2024
1 parent 3bc636a commit d169478
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 38 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build

# Controls when the action will run
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build:
runs-on: ubuntu-latest
container: wpilib/roborio-cross-ubuntu:2024-22.04

# Tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v4

- name: Add repository to git safe directories
run: git config --global --add safe.directory $GITHUB_WORKSPACE

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Build the robot code
run: ./gradlew build
38 changes: 0 additions & 38 deletions .github/workflows/main.yml

This file was deleted.

0 comments on commit d169478

Please sign in to comment.