Skip to content

Commit

Permalink
ROM
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Sep 16, 2024
1 parent 834fead commit eddf8c4
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 41 deletions.
33 changes: 33 additions & 0 deletions .github/actions/download-ROM/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Prepare env. / restore caches
description: some more complex download-ROM - pip & hf

runs:
using: "composite"
steps:

- name: Setup macOS
if: runner.os == 'macOS'
run: |
brew update
brew install rar
shell: bash
- name: Setup Ubuntu
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y unrar
shell: bash
- name: Setup Windows
if: runner.os == 'Windows'
run: |
choco install unrar
shell: bash

- name: Download ROMs
run: |
mkdir -p _datasets
cd _datasets
curl http://www.atarimania.com/roms/Roms.rar -o Roms.rar
unrar x -y Roms.rar
rm Roms.rar
shell: bash
11 changes: 0 additions & 11 deletions .github/labeler.yml

This file was deleted.

19 changes: 19 additions & 0 deletions .github/labeling-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
documentation:
- changed-files:
- any-glob-to-any-file:
- docs/**/*

callback:
- changed-files:
- any-glob-to-any-file:
- pl_bolts/callbacks/**/*

datamodule:
- changed-files:
- any-glob-to-any-file:
- pl_bolts/datamodules/**/*

model:
- changed-files:
- any-glob-to-any-file:
- pl_bolts/models/**/*
22 changes: 1 addition & 21 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,29 +100,9 @@ jobs:
# bump this date if you need update cache
key: datasets-20230630

- name: Setup macOS
if: runner.os == 'macOS' && steps.cache-datasets.outputs.cache-hit != 'true'
run: |
brew update
brew install rar
- name: Setup Ubuntu
if: runner.os == 'Linux'&& steps.cache-datasets.outputs.cache-hit != 'true'
run: |
sudo apt-get update
sudo apt-get install -y unrar
- name: Setup Windows
if: runner.os == 'Windows'&& steps.cache-datasets.outputs.cache-hit != 'true'
run: |
choco install unrar
- name: Download ROMs
if: steps.cache-datasets.outputs.cache-hit != 'true'
run: |
mkdir -p _datasets
cd _datasets
curl http://www.atarimania.com/roms/Roms.rar -o Roms.rar
unrar x -y Roms.rar
rm Roms.rar
uses: ./.github/actions/download-ROM

- name: Init ROMs
working-directory: _datasets/
Expand Down
23 changes: 14 additions & 9 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
name: Labeler

on:
pull_request_target:
types: [opened, reopened]
name: "Pull Request Labeler"
on: [pull_request_target]

jobs:
triage:
triage-prs:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@main
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
# Uploads repository content to the runner
- uses: actions/checkout@v4
- uses: actions/labeler@v5
with:
# The path to the label configuration file.
configuration-path: .github/labeling-config.yml
# Whether removing labels when matching files are reverted or no longer changed by the PR
sync-labels: true

0 comments on commit eddf8c4

Please sign in to comment.