Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Auto-Compile code to test F3DEX3, STILL W.I.P, NEED TO FIND OUT HOW TO ZIP THE BINARIES #8

Closed
wants to merge 16 commits into from

Conversation

ThePerfectLuigi64
Copy link
Contributor

No description provided.

Comment on lines 21 to 22
- name: Get armips
run: git clone --recursive https://github.com/Kingcom/armips.git ; cd armips ; mkdir build && cd build ; cmake -DCMAKE_BUILD_TYPE=Release .. ; cmake --build . ; sudo cp armips /usr/bin
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can replace with

- name: Get armips
        uses: actions/checkout@v4.1.1
        with:
          path: armips
          repository: Kingcom/armips
          submodules: "true"
       run: |
          cd armips
          mkdir build && cd build
          cmake -DCMAKE_BUILD_TYPE=Release ..
          cmake --build .

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah so i tried to use this code and it didn't work

Makefile Outdated
Comment on lines 212 to 213
doc:
doxygen Doxyfile
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why you remove that ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it caused compilation errors when trying to compile f3dex3

Copy link
Contributor

@coco875 coco875 Jun 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's because it's two space and not a true tabulation so if you replace it with a tabulation it will no longer make the error

run: git clone --recursive https://github.com/Kingcom/armips.git ; cd armips ; mkdir build && cd build ; cmake -DCMAKE_BUILD_TYPE=Release .. ; cmake --build . ; sudo cp armips /usr/bin

- name: Make The Binary
run: make -j
Copy link
Contributor

@coco875 coco875 Jun 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not just make -j ARMIPS=armips/build/armips it will work without needed to copy it in /usr/bin

@coco875
Copy link
Contributor

coco875 commented Jun 17, 2024

why the last two don't detect I guess it's because of space you have so try with this

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v4

    - name: Install dependencies
      run: sudo apt install cmake build-essential

    - name: Get armips
      uses: actions/checkout@v4.1.1
      with:
        path: armips
        repository: Kingcom/armips
        submodules: "true"
      run: |
        cd armips
        mkdir build && cd build
        cmake -DCMAKE_BUILD_TYPE=Release ..
        cmake --build .

    - name: Make The Binary
      run: make -j ARMIPS=armips/build/armips

@ThePerfectLuigi64
Copy link
Contributor Author

why the last two don't detect I guess it's because of space you have so try with this

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v4

    - name: Install dependencies
      run: sudo apt install cmake build-essential

    - name: Get armips
      uses: actions/checkout@v4.1.1
      with:
        path: armips
        repository: Kingcom/armips
        submodules: "true"
      run: |
        cd armips
        mkdir build && cd build
        cmake -DCMAKE_BUILD_TYPE=Release ..
        cmake --build .

    - name: Make The Binary
      run: make -j ARMIPS=armips/build/armips

now when ever i copy it EVERYTHING says missing required root key on

@coco875
Copy link
Contributor

coco875 commented Jun 17, 2024

hmm 2 sec I will try on my fork

@coco875
Copy link
Contributor

coco875 commented Jun 17, 2024

and for the zip of binaire I know how to do it but like f3dex3 are on a grey zone because it's use f3dex2 like base who are proprietary any bin will be distrubuate directly

@coco875
Copy link
Contributor

coco875 commented Jun 17, 2024

I make a PR to you fork who fix all thing I say https://github.com/ThePerfectLuigi64/F3DEX3/pull/2/

@coco875
Copy link
Contributor

coco875 commented Jun 17, 2024

(for binairie you can use this https://github.com/actions/upload-artifact but like I mention earlier F3DEX3 are in zone where publish bin of it can be a legal issue)

Comment on lines +41 to +44
path: build
# The desired behavior if no files are found using the provided path.
retention-days: 0
compression-level: 0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need two space for the tabulation

Comment on lines +37 to +44
- name: Upload a Build Artifact
uses: actions/upload-artifact@v4.3.3
with:
# A file, directory or wildcard pattern that describes what to upload
path: build
# The desired behavior if no files are found using the provided path.
retention-days: 0
compression-level: 0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

like I mention this can make legal issue to post F3DEX3 binairie

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the fact that you can compile f3dex3 with just a make and it has copyrighted code IN, THE, FILES, and that's fine but binary ohhhh noooo so scary, it really doesn't matter

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just related a recent conversation about how we should include f3dex3 in hackeroot and hackersm64 in hackern64 discord. And Sauraen was thinking to include it as submodule where the binary are compiled but not included the binary file.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is the community's official position that reverse engineered source code, including assembly, does not fall under the same copyright as the original copyrighted binary, or is entitled to fair use protections which would not apply to just distributing the binary. Since this is a project under the HackerN64 org, it needs to follow their standards about this.

I also don't think there's much value in distributing the artifacts. It's not like a tool where we want to make it easy for people to download and get started with limited technical ability. The only people who will want the binaries here are romhack developers, and they will at the minimum have to modify their project's build system (and game engine code) to use F3DEX3, so it's not much of an extra burden for them to have to build the microcode from source. If someone wants to make a project with minimal setup, they should use HackerOoT or HackerSM64 which already have F3DEX3 built in.

The other changes besides this, which coco already moved to a separate PR, are good and I will merge them, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants