Skip to content

Commit

Permalink
try to fix actions
Browse files Browse the repository at this point in the history
  • Loading branch information
HJfod committed Jul 31, 2024
1 parent 6d26c70 commit 9f103c2
Showing 1 changed file with 12 additions and 38 deletions.
50 changes: 12 additions & 38 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,64 +7,38 @@ on:
- "**"

jobs:
build-windows:
build:
strategy:
fail-fast: false
matrix:
config:
- name: Windows
os: windows-latest

name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}

steps:
- uses: actions/checkout@v4

- name: Install OpenSSL
run: |
echo "VCPKG_ROOT=$env:VCPKG_INSTALLATION_ROOT" | Out-File -FilePath $env:GITHUB_ENV -Append
vcpkg install openssl:x86-windows
- name: Checkout Pro
uses: actions/checkout@v4
with:
repository: HJfod/BetterEditPro
path: pro
token: ${{ secrets.ACCESS_TOKEN }}
ref: v6

- name: Build the mod
uses: geode-sdk/build-geode-mod@main
with:
bindings: geode-sdk/bindings
bindings-ref: main
combine: true
target: ${{ matrix.config.target }}

build-android:
strategy:
fail-fast: false
matrix:
config:
- name: Android32
os: ubuntu-latest
target: Android32

- name: Android64
os: ubuntu-latest
target: Android64

name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}

steps:
- uses: actions/checkout@v4

- name: Install OpenSSL
- name: Install OpenSSL (Windows)
if: ${{ matrix.config.os == 'Windows' }}
run: |
vcpkg install openssl:x86-windows
- name: Install OpenSSL (Android)
if: ${{ matrix.config.os == 'ubuntu-latest' }}
run: |
sudo apt-get install libssl-dev
sudo apt install pkg-config
sudo apt-get install pkg-config
- name: Checkout Pro
uses: actions/checkout@v4
Expand All @@ -81,11 +55,11 @@ jobs:
bindings-ref: main
combine: true
target: ${{ matrix.config.target }}

package:
name: Package builds
runs-on: ubuntu-latest
needs: ['build-windows', 'build-android']
needs: ['build']

steps:
- uses: geode-sdk/build-geode-mod/combine@main
Expand Down

0 comments on commit 9f103c2

Please sign in to comment.