Skip to content

Commit

Permalink
Cross-compilation on GitHub Actions Round 6 (hopefully the final one)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dadoum committed Jul 30, 2023
1 parent 2027ac8 commit d9ec21f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/cmake-cross-compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@ jobs:
run: dub build :anisette-server -b release --compiler=aarch64-linux-gnu-gdc-13 -c "static"

- name: Rename
run: mv "${{github.workspace}}/bin/provision_anisette-server" "${{github.workspace}}/bin/anisette-server-aarch64"
run: mv "bin/provision_anisette-server" "bin/anisette-server-aarch64"

- name: Put debug symbols in a separate file
run: eu-strip --strip-debug -f "${{github.workspace}}/bin/anisette-server-aarch64.dbg" "${{github.workspace}}/bin/anisette-server-aarch64"
run: eu-strip --strip-debug -f "bin/anisette-server-aarch64.dbg" "bin/anisette-server-aarch64"

- uses: actions/upload-artifact@v3
with:
name: anisette-server-aarch64
path: |
${{github.workspace}}/bin/anisette-server-aarch64
${{github.workspace}}/bin/anisette-server-aarch64.dbg
bin/anisette-server-aarch64
bin/anisette-server-aarch64.dbg
build-anisette-server-armv7:
runs-on: ubuntu-latest
Expand All @@ -59,14 +59,14 @@ jobs:
run: dub build :anisette-server -b release --compiler=arm-linux-gnueabihf-gdc-13 -c "static"

- name: Rename
run: mv "${{github.workspace}}/bin/provision_anisette-server" "${{github.workspace}}/bin/anisette-server-armv7"
run: mv "bin/provision_anisette-server" "bin/anisette-server-armv7"

- name: Put debug symbols in a separate file
run: eu-strip --strip-debug -f "${{github.workspace}}/bin/anisette-server-armv7.dbg" "${{github.workspace}}/bin/anisette-server-armv7"
run: eu-strip --strip-debug -f "bin/anisette-server-armv7.dbg" "bin/anisette-server-armv7"

- uses: actions/upload-artifact@v3
with:
name: anisette-server-armv7
path: |
${{github.workspace}}/bin/anisette-server-armv7
${{github.workspace}}/bin/anisette-server-armv7.dbg
bin/anisette-server-armv7
bin/anisette-server-armv7.dbg
8 changes: 4 additions & 4 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@ jobs:
run: dub build :anisette-server -b release --compiler=i686-linux-gnu-gdc-13 -c "static"

- name: Rename
run: mv "${{github.workspace}}/bin/provision_anisette-server" "${{github.workspace}}/bin/anisette-server-i686"
run: mv "bin/provision_anisette-server" "bin/anisette-server-i686"

- name: Put debug symbols in a separate file
run: eu-strip --strip-debug -f "${{github.workspace}}/bin/anisette-server-i686.dbg" "${{github.workspace}}/bin/anisette-server-i686"
run: eu-strip --strip-debug -f "bin/anisette-server-i686.dbg" "bin/anisette-server-i686"

- uses: actions/upload-artifact@v3
with:
name: anisette-server-i686
path: |
${{github.workspace}}/bin/anisette-server-i686
${{github.workspace}}/bin/anisette-server-i686.dbg
bin/anisette-server-i686
bin/anisette-server-i686.dbg

0 comments on commit d9ec21f

Please sign in to comment.