Skip to content

Commit

Permalink
Workflow bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasDeBruijn committed Jul 5, 2021
1 parent b69b9cd commit 1c27451
Showing 1 changed file with 29 additions and 3 deletions.
32 changes: 29 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,27 @@ jobs:
- uses: actions/checkout@v2

# Dependencies
- name: Change Apt repository
run: sudo sed -i 's|deb http://azure.archive.ubuntu.com/ubuntu/|deb [arch=amd64] http://archive.ubuntu.com/ubuntu/|'
- name: Add ARM repos
run: |
tee -a /etc/apt/sources.list.d/arm.list1 <<EOF
deb [arch=arm64,armhf] http://ports.ubuntu.com/ubuntu-ports focal main restricted
deb [arch=arm64,armhf] http://ports.ubuntu.com/ubuntu-ports focal-updates main restricted
deb [arch=arm64,armhf] http://ports.ubuntu.com/ubuntu-ports focal universe
deb [arch=arm64,armhf] http://ports.ubuntu.com/ubuntu-ports focal-updates universe
deb [arch=arm64,armhf] http://ports.ubuntu.com/ubuntu-ports focal multiverse
deb [arch=arm64,armhf] http://ports.ubuntu.com/ubuntu-ports focal-updates multiverse
deb [arch=arm64,armhf] http://ports.ubuntu.com/ubuntu-ports focal-backports main restricted universe multiverse
EOF
- name: Add dpkg arch
run: sudo dpkg --add-architecture arm64
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y make gcc libssl-dev gcc-aarch64-linux-gnu libssl-dev:arm64 pkg-config:arm64
- name: Install Rust
run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
- name: Add Rust binaries to path
run: export PATH = $PATH:$HOME/.cargo/bin
run: export PATH="$HOME/.cargo/bin:$PATH"
- name: Add aarch64 target
run: rustup target add aarch64-unknown-linux-gnu

Expand All @@ -68,14 +81,27 @@ jobs:
- uses: actions/checkout@v2

# Dependencies
- name: Change Apt repository
run: sudo sed -i 's|deb http://azure.archive.ubuntu.com/ubuntu/|deb [arch=amd64] http://archive.ubuntu.com/ubuntu/|'
- name: Add ARM repos
run: |
tee -a /etc/apt/sources.list.d/arm.list1 <<EOF
deb [arch=arm64,armhf] http://ports.ubuntu.com/ubuntu-ports focal main restricted
deb [arch=arm64,armhf] http://ports.ubuntu.com/ubuntu-ports focal-updates main restricted
deb [arch=arm64,armhf] http://ports.ubuntu.com/ubuntu-ports focal universe
deb [arch=arm64,armhf] http://ports.ubuntu.com/ubuntu-ports focal-updates universe
deb [arch=arm64,armhf] http://ports.ubuntu.com/ubuntu-ports focal multiverse
deb [arch=arm64,armhf] http://ports.ubuntu.com/ubuntu-ports focal-updates multiverse
deb [arch=arm64,armhf] http://ports.ubuntu.com/ubuntu-ports focal-backports main restricted universe multiverse
EOF
- name: Add dpkg arch
run: sudo dpkg --add-architecture armhf
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y make gcc libssl-dev gcc-arm-linux-gnueabihf libssl-dev:armhf pkg-config:armhf
- name: Install Rust
run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
- name: Add Rust binaries to path
run: export PATH = $PATH:$HOME/.cargo/bin
run: export PATH="$HOME/.cargo/bin:$PATH"
- name: Add armhf target
run: rustup target add arm-unknown-linux-gnueabihf

Expand All @@ -102,7 +128,7 @@ jobs:
- name: Install Rust
run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
- name: Add Rust binaries to path
run: export PATH = $PATH:$HOME/.cargo/bin
run: export PATH="$HOME/.cargo/bin:$PATH"
- name: Add windows target
run: rustup target add x86_64-pc-windows-gnu

Expand Down

0 comments on commit 1c27451

Please sign in to comment.