Skip to content

Add ARM support #57

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,16 @@ Personal Access Token for GitHub account can be created [here](https://github.co
* CentOS systems require EPEL repository.
Recommended role: `robertdebock.epel`

* Weekly tested on:
* CentOS/RHEL 7,8
* Debian 9,10
* Fedora 32,33
* Ubuntu 16,18,20
## Supported CPU architecture:

* ARM, ARM64 (dependencies installation is not covered by this role)
* AMD64, x86_64
## Weekly tested on:

* CentOS/RHEL 7,8
* Debian 9,10
* Fedora 32,33
* Ubuntu 16,18,20

**Note:** Fedora 32+ and Ubuntu 20 must use Ansible 2.9.8+. Other distros/releases will work also with older 2.8.0+ Ansible.

Expand Down
2 changes: 1 addition & 1 deletion tasks/assert.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
- name: Check variables
- name: Check variables (RUN ONCE)
assert:
that:
- github_account is defined
Expand Down
14 changes: 2 additions & 12 deletions tasks/install_runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,6 @@
tags:
- install

# - name: Create temporary directory for archive
# tempfile:
# state: directory
# register: tempdir
# run_once: yes
# delegate_to: localhost
# become: false
# when: runner_version not in runner_installed.stdout
# tags:
# - install

- name: Create temporary directory for archive
file:
path: "{{ runner_pkg_tempdir }}"
Expand All @@ -68,7 +57,8 @@

- name: Download runner package version - "{{ runner_version }}" (RUN ONCE)
get_url:
url: "https://github.com/actions/runner/releases/download/v{{ runner_version }}/actions-runner-linux-x64-{{ runner_version }}.tar.gz"
url: "https://github.com/actions/runner/releases/download/v{{ runner_version }}/\
actions-runner-linux-{{ github_actions_architecture }}-{{ runner_version }}.tar.gz"
dest: "{{ runner_pkg_tempdir }}/actions-runner-linux-{{ runner_version }}.tar.gz"
force: no
run_once: yes
Expand Down
6 changes: 6 additions & 0 deletions vars/main.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
---
# vars file for ansible-github_actions_runner
github_actions_architecture_map:
amd64: x64
x86_64: x64
armv7l: arm
aarch64: arm64
github_actions_architecture: "{{ github_actions_architecture_map[ansible_architecture] }}"