Skip to content

Commit caa9237

Browse files
committed
Up
1 parent 6d3e2b3 commit caa9237

1 file changed

Lines changed: 73 additions & 70 deletions

File tree

.github/workflows/release.yml

Lines changed: 73 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@ on:
33
push:
44
tags:
55
- "v*.*.*"
6+
branches:
7+
- jk-ubuntu
68
permissions:
79
contents: write
810
jobs:
911
linux:
1012
runs-on: ubuntu-22.04
13+
container: ubuntu:20.04
1114
env:
1215
MIX_ENV: prod
1316
ELIXIR_VERSION: "1.15.3"
@@ -23,8 +26,8 @@ jobs:
2326
elixir-version: ${{ env.ELIXIR_VERSION }}
2427
- name: Install system dependencies
2528
run: |
26-
sudo apt-get update
27-
sudo apt-get install -y build-essential automake autoconf pkg-config bc m4 unzip zip \
29+
apt-get update
30+
apt-get install -y build-essential automake autoconf pkg-config bc m4 unzip zip \
2831
gcc g++ \
2932
gcc-i686-linux-gnu g++-i686-linux-gnu \
3033
gcc-aarch64-linux-gnu g++-aarch64-linux-gnu \
@@ -38,73 +41,73 @@ jobs:
3841
mkdir -p "${ELIXIR_MAKE_CACHE_DIR}"
3942
mix deps.get
4043
mix elixir_make.precompile
41-
- uses: softprops/action-gh-release@v2
42-
if: startsWith(github.ref, 'refs/tags/')
43-
with:
44-
draft: true
45-
files: |
46-
cache/*.tar.gz
47-
cache/*.sha256
44+
# - uses: softprops/action-gh-release@v2
45+
# if: startsWith(github.ref, 'refs/tags/')
46+
# with:
47+
# draft: true
48+
# files: |
49+
# cache/*.tar.gz
50+
# cache/*.sha256
4851

49-
macos:
50-
runs-on: macos-13
51-
env:
52-
MIX_ENV: prod
53-
ELIXIR_VERSION: "1.15.3"
54-
strategy:
55-
matrix:
56-
otp_version: ["25.3"]
57-
name: macOS x86_64 (${{ matrix.otp_version }})
58-
steps:
59-
- uses: actions/checkout@v4
60-
- run: |
61-
curl -fsSO https://elixir-lang.org/install.sh
62-
sh install.sh elixir@${{ env.ELIXIR_VERSION }} otp@${{ matrix.otp_version }}
63-
otp_bin=($HOME/.elixir-install/installs/otp/*/bin)
64-
elixir_bin=($HOME/.elixir-install/installs/elixir/*/bin)
65-
echo "$otp_bin" >> "$GITHUB_PATH"
66-
echo "$elixir_bin" >> "$GITHUB_PATH"
67-
- name: Precompile
68-
run: |
69-
export ELIXIR_MAKE_CACHE_DIR=$(pwd)/cache
70-
mkdir -p "${ELIXIR_MAKE_CACHE_DIR}"
71-
mix deps.get
72-
mix elixir_make.precompile
73-
- uses: softprops/action-gh-release@v2
74-
if: startsWith(github.ref, 'refs/tags/')
75-
with:
76-
draft: true
77-
files: |
78-
cache/*.tar.gz
79-
cache/*.sha256
52+
# macos:
53+
# runs-on: macos-13
54+
# env:
55+
# MIX_ENV: prod
56+
# ELIXIR_VERSION: "1.15.3"
57+
# strategy:
58+
# matrix:
59+
# otp_version: ["25.3"]
60+
# name: macOS x86_64 (${{ matrix.otp_version }})
61+
# steps:
62+
# - uses: actions/checkout@v4
63+
# - run: |
64+
# curl -fsSO https://elixir-lang.org/install.sh
65+
# sh install.sh elixir@${{ env.ELIXIR_VERSION }} otp@${{ matrix.otp_version }}
66+
# otp_bin=($HOME/.elixir-install/installs/otp/*/bin)
67+
# elixir_bin=($HOME/.elixir-install/installs/elixir/*/bin)
68+
# echo "$otp_bin" >> "$GITHUB_PATH"
69+
# echo "$elixir_bin" >> "$GITHUB_PATH"
70+
# - name: Precompile
71+
# run: |
72+
# export ELIXIR_MAKE_CACHE_DIR=$(pwd)/cache
73+
# mkdir -p "${ELIXIR_MAKE_CACHE_DIR}"
74+
# mix deps.get
75+
# mix elixir_make.precompile
76+
# - uses: softprops/action-gh-release@v2
77+
# if: startsWith(github.ref, 'refs/tags/')
78+
# with:
79+
# draft: true
80+
# files: |
81+
# cache/*.tar.gz
82+
# cache/*.sha256
8083

81-
windows:
82-
runs-on: windows-2022
83-
env:
84-
MIX_ENV: prod
85-
ELIXIR_VERSION: "1.15.3"
86-
strategy:
87-
matrix:
88-
otp_version: ["25.3"]
89-
name: Windows x86_64 (${{ matrix.otp_version }})
90-
steps:
91-
- uses: actions/checkout@v4
92-
- uses: erlef/setup-beam@v1
93-
with:
94-
otp-version: ${{ matrix.otp_version }}
95-
elixir-version: ${{ env.ELIXIR_VERSION }}
96-
- uses: ilammy/msvc-dev-cmd@v1
97-
- name: Precompile
98-
shell: bash
99-
run: |
100-
export ELIXIR_MAKE_CACHE_DIR=$(pwd)/cache
101-
mkdir -p "${ELIXIR_MAKE_CACHE_DIR}"
102-
mix deps.get
103-
mix elixir_make.precompile
104-
- uses: softprops/action-gh-release@v2
105-
if: startsWith(github.ref, 'refs/tags/')
106-
with:
107-
draft: true
108-
files: |
109-
cache/*.tar.gz
110-
cache/*.sha256
84+
# windows:
85+
# runs-on: windows-2022
86+
# env:
87+
# MIX_ENV: prod
88+
# ELIXIR_VERSION: "1.15.3"
89+
# strategy:
90+
# matrix:
91+
# otp_version: ["25.3"]
92+
# name: Windows x86_64 (${{ matrix.otp_version }})
93+
# steps:
94+
# - uses: actions/checkout@v4
95+
# - uses: erlef/setup-beam@v1
96+
# with:
97+
# otp-version: ${{ matrix.otp_version }}
98+
# elixir-version: ${{ env.ELIXIR_VERSION }}
99+
# - uses: ilammy/msvc-dev-cmd@v1
100+
# - name: Precompile
101+
# shell: bash
102+
# run: |
103+
# export ELIXIR_MAKE_CACHE_DIR=$(pwd)/cache
104+
# mkdir -p "${ELIXIR_MAKE_CACHE_DIR}"
105+
# mix deps.get
106+
# mix elixir_make.precompile
107+
# - uses: softprops/action-gh-release@v2
108+
# if: startsWith(github.ref, 'refs/tags/')
109+
# with:
110+
# draft: true
111+
# files: |
112+
# cache/*.tar.gz
113+
# cache/*.sha256

0 commit comments

Comments
 (0)