27 lines
631 B
YAML
27 lines
631 B
YAML
name: Compile
|
|
run-name: Compiling software (Ubuntu)
|
|
on: [push]
|
|
|
|
jobs:
|
|
Compile:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Install Ruby and Bundler
|
|
run: |
|
|
apt-get update
|
|
apt-get install -y ruby-full
|
|
gem install bundler
|
|
|
|
- name: Install dependencies
|
|
run: bundle install
|
|
|
|
- name: Set Token and Server ID
|
|
run: |
|
|
export BOT_TOKEN="${{ secrets.TOKEN }}"
|
|
export TEST_SERVER_ID="${{ secrets.SERVER_ID }}"
|
|
|
|
- name: Execute program
|
|
run: bundle exec ruby main.rb |