Skip to content

Commit

Permalink
Update c-cpp.yml: fixed arch prefix (x86_64) everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
rafccq authored Aug 10, 2024
1 parent 6a5d249 commit ae2543d
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
workflow_dispatch:

jobs:
build-i686-windows:
build-x86_64-windows:
runs-on: windows-latest
defaults:
run:
Expand Down Expand Up @@ -45,11 +45,11 @@ jobs:
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: pd-i686-windows-x64
name: pd-x86_64-windows
path: bin/
retention-days: 0

build-i686-linux:
build-x86_64-linux:
runs-on: ubuntu-latest
steps:
- name: Install dependencies
Expand All @@ -60,11 +60,11 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build pd.exe
run: make -f Makefile.port TARGET_PLATFORM=i686-linux -j2
run: make -f Makefile.port TARGET_PLATFORM=x86_64-linux -j2
- name: Build pd.pal.exe
run: make -f Makefile.port TARGET_PLATFORM=i686-linux -j2 ROMID=pal-final
run: make -f Makefile.port TARGET_PLATFORM=x86_64-linux -j2 ROMID=pal-final
- name: Build pd.jpn.exe
run: make -f Makefile.port TARGET_PLATFORM=i686-linux -j2 ROMID=jpn-final
run: make -f Makefile.port TARGET_PLATFORM=x86_64-linux -j2 ROMID=jpn-final
- name: Prepare artifact for packaging
run: |
mkdir -p bin/data
Expand All @@ -75,14 +75,14 @@ jobs:
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: pd-i686-linux-x64
name: pd-x86_64-linux
path: bin/
retention-days: 0

publish-latest-build:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/port-x64'
needs: [build-i686-windows, build-i686-linux]
needs: [build-x86_64-windows, build-x86_64-linux]
permissions:
contents: write
steps:
Expand All @@ -96,8 +96,8 @@ jobs:
run: |
mkdir ci-release
pushd ci-artifacts
tar czf ../ci-release/pd-i686-linux-x64.tar.gz pd-i686-linux-x64
zip -r ../ci-release/pd-i686-windows-x64.zip pd-i686-windows-x64
tar czf ../ci-release/pd-x86_64-linux.tar.gz pd-x86_64-linux
zip -r ../ci-release/pd-x86_64-windows.zip pd-x86_64-windows
popd
git tag --force ci-dev-build-x64 port
git push --force origin ci-dev-build-x64
Expand Down

0 comments on commit ae2543d

Please sign in to comment.