Skip to content

Commit

Permalink
ci: add cross compile support for mips
Browse files Browse the repository at this point in the history
  • Loading branch information
kunish committed Jun 11, 2023
1 parent 47c771f commit d034fae
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,19 @@ jobs:
- goos: linux
goarch: mips64
cgo_enabled: 1
cc: mips64-linux-gnuabi64-gcc
- goos: linux
goarch: mips64le
cgo_enabled: 1
cc: mips64el-linux-gnuabi64-gcc
- goos: linux
goarch: mipsle
cgo_enabled: 1
cc: mipsel-linux-gnu-gcc
- goos: linux
goarch: mips
cgo_enabled: 1
cc: mips-linux-gnu-gcc
# END Linux mips
- goos: linux
goarch: riscv64
Expand All @@ -93,6 +97,7 @@ jobs:
GOARM: ${{ matrix.goarm }}
GOAMD64: ${{ matrix.goamd64 }}
CGO_ENABLED: ${{ matrix.cgo_enabled }}
CC: ${{ matrix.cc }}

steps:
- uses: actions/checkout@v3
Expand All @@ -101,7 +106,7 @@ jobs:
with:
repository: daeuniverse/dae-wing
path: dae-wing
ref: '2b3079281b76a0748bb0e33c63203340e56265b8'
ref: 'd986b18e10a7bfb90da1c15094b97e9386c459ef'

- name: get filename
id: get_filename
Expand All @@ -110,6 +115,12 @@ jobs:
echo "GOOS: $GOOS, GOARCH: $GOARCH, RELEASE_NAME: $_NAME"
echo "ASSET_NAME=$_NAME" >> $GITHUB_OUTPUT
- name: install build dependencies
if: ${{ startsWith(matrix.goarch, 'mips') }}
run: |
sudo apt-get update -y
sudo apt-get install -y gcc-mips64-linux-gnuabi64 gcc-mips64el-linux-gnuabi64 gcc-mips-linux-gnu gcc-mipsel-linux-gnu
- name: build
run: |
cd dae-wing
Expand Down

0 comments on commit d034fae

Please sign in to comment.