Skip to content

Commit

Permalink
Update workflow to use ubuntu-20.04 and adjust target to x86_64-unkno…
Browse files Browse the repository at this point in the history
…wn-linux-gnu
  • Loading branch information
nullchinchilla committed Apr 18, 2024
1 parent 302f623 commit 1626fe5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build_and_upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ jobs:
strategy:
matrix:
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-musl
- os: ubuntu-20.04
target: x86_64-unknown-linux-gnu
dir: musl
- os: windows-latest
target: i686-pc-windows-msvc
Expand All @@ -24,7 +24,7 @@ jobs:
uses: actions/checkout@v2

- name: Install musl-tools (Linux)
if: matrix.os == 'ubuntu-latest'
if: matrix.os == 'ubuntu-20.04'
run: sudo apt-get install -y musl-tools

- name: Install Rust
Expand Down Expand Up @@ -69,13 +69,13 @@ jobs:
mv target/${{ matrix.target }}/release/geph5-client artifacts/${{ matrix.dir }}/
- name: Build bridge and exit
if: matrix.os == 'ubuntu-latest'
if: matrix.os == 'ubuntu-20.04'
run: |
cargo build --locked --release --target ${{ matrix.target }} --manifest-path binaries/geph5-bridge/Cargo.toml
cargo build --locked --release --target ${{ matrix.target }} --manifest-path binaries/geph5-exit/Cargo.toml
- name: Move client binaries to artifacts directory
if: matrix.os == 'ubuntu-latest'
if: matrix.os == 'ubuntu-20.04'
run: |
mkdir -p artifacts/${{ matrix.dir }}
mv target/${{ matrix.target }}/release/geph5-bridge artifacts/${{ matrix.dir }}/
Expand All @@ -98,7 +98,7 @@ jobs:

upload:
needs: build
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- name: Download all artifacts
uses: actions/download-artifact@v2
Expand Down

0 comments on commit 1626fe5

Please sign in to comment.